14.02.2010, 18:23
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 ![]() GetObjectPos(missile, x, y, z); DestroyObject(missile); CreateExplosion(x, y, z, 12, 10.0); } return 1; } |
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