Road Blocks Removal
#1

Hello,

Is there a code which deletes all objects which are using that object id
I am doing a roadblock removal script where a police officer can plant as many roadblocks as he wants, and to remove them he does /rrball and it removes all objects with the ObjectID (981)
I dont think DestroyObject(playerid, 981); works so is there a way to do it?
Reply
#2

Are these created objects? If so, you can just store all your objects that your creating in an array and the loop and delete ones that match your specified id. If this is the case, just follow the same format as that /rrball command.

If they are not created objects, then no.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)