Assigning an object an ID
#3

Yes using chair = CreateObject.... ( would be correct. CreateObject simply returns an integer which holds the ID of the object.

You can then use the ID to interact with it, i.g:
pawn Код:
new chair = CreateObject(1495, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    if(IsValidObject(chair))
    {
        DestroyObject(chair);
    }
Reply


Messages In This Thread
Assigning an object an ID - by Luke_James - 06.09.2015, 23:22
Re: Assigning an object an ID - by Logofero - 07.09.2015, 00:50
Re: Assigning an object an ID - by Abagail - 07.09.2015, 02:27
Re: Assigning an object an ID - by Luke_James - 07.09.2015, 12:58
Re: Assigning an object an ID - by Logofero - 07.09.2015, 14:25
Re: Assigning an object an ID - by Luke_James - 07.09.2015, 15:02
Re: Assigning an object an ID - by Logofero - 07.09.2015, 15:11
Re: Assigning an object an ID - by Logofero - 07.09.2015, 15:24
Re: Assigning an object an ID - by Luke_James - 07.09.2015, 15:32
Re: Assigning an object an ID - by Logofero - 07.09.2015, 15:42

Forum Jump:


Users browsing this thread: 1 Guest(s)