[help]on object moved
#7

Quote:
Originally Posted by mansonh
You need to flag somewhere that your object is a missile or not.
So have an array for all objects identifying if its a missile or not.

new objectismissile[254];

then whenever you create a missile
new objectid = CreateObject(...); //unless your using a streamer
put
objectismissile[objectid]=1;//means it is a missile

Then in your function check
public OnObjectMoved(objectid)
{
if(objectismissile[objectid])
{
new Float, Float:y, Float:z;
GetObjectPos(missile, x, y, z);
DestroyObject(missile);
CreateExplosion(x, y, z, 12, 10.0);
}
return 1;
}
wtf
C:\Users\Braduz\Desktop\Server\gamemodes\tAxIFRB.p wn(4583) : error 017: undefined symbol "objectid"
error 076: syntax error in the expression, or invalid function call
C:\Users\Braduz\Desktop\Server\gamemodes\tAxIFRB.p wn(5581) : error 076: syntax error in the expression, or invalid function call
Reply


Messages In This Thread
[help]on object moved - by braduz - 14.02.2010, 08:14
Re: [help]on object moved - by mansonh - 14.02.2010, 09:23
Re: [help]on object moved - by braduz - 14.02.2010, 09:33
Re: [help]on object moved - by mansonh - 14.02.2010, 09:36
Re: [help]on object moved - by braduz - 14.02.2010, 09:42
Re: [help]on object moved - by mansonh - 14.02.2010, 18:02
Re: [help]on object moved - by braduz - 14.02.2010, 18:23
Re: [help]on object moved - by mansonh - 15.02.2010, 03:17
Re: [help]on object moved - by braduz - 15.02.2010, 09:28
Re: [help]on object moved - by mansonh - 15.02.2010, 10:14

Forum Jump:


Users browsing this thread: 1 Guest(s)