Posts: 791
Threads: 65
Joined: Oct 2009
Reputation:
0
there are some objects that can get destroyed .. like garbage bags, hay, fence ...
how can i check if they exist or not ? (if destroyed)
because im making waste collector job and i cant know if someone destroyed the bag with a vehicle or punching so i can respawn it ... also its making bugs..
pls help this is importent.. ty
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Not possible, sorry.
Someone may suggest using keys and camera vectors, but it really isn't a reliable option.
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
The object is created, a player can destroy the object and will most likely sync for all players streamed in, then another player streams in to see the object still there.
The object does not get deleted just because a player hits it, you'd need to detect it some other way like using camera vectors, players positions ect.
I'd recommend just using pickups instead.
Posts: 122
Threads: 25
Joined: Nov 2011
Reputation:
0
Maybe you should make your own with CreatePlayerObject, then check with IsValidPlayerObject. I think that's the best way there is...
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
He wants to detect clientside destruction, not deletion.
Posts: 122
Threads: 25
Joined: Nov 2011
Reputation:
0
Oh, sorry
Still, it might be easier for a trashmaster mission, then you can delete it when the player 'picks it up' via a checkpoint or whatever.