asking about remove object
#2

You'd wanna store the object ID in a variable or pVar. For instance when creating/attaching said object...

Object = CreateObject... your code is here...
SetPVarInt(playerid, "AttachedObject", Object);

And then to remove it you'd do:
new objectid = GetPVarInt(playerid, "AttachedObject");
DestroyObject(objectid);
Reply


Messages In This Thread
asking about remove object - by iThePunisher - 22.03.2014, 23:37
Re: asking about remove object - by Abagail - 22.03.2014, 23:42
Re: asking about remove object - by iThePunisher - 22.03.2014, 23:48
Re: asking about remove object - by TLN - 23.03.2014, 00:03
Re: asking about remove object - by iThePunisher - 23.03.2014, 00:08
Re: asking about remove object - by TLN - 23.03.2014, 00:10

Forum Jump:


Users browsing this thread: 1 Guest(s)