Page 1 of 1

skripting error

Posted: 28 May 2006, 05:39
by MrSpontaneous
well, I have a strange error (or atleast I think so :| )

the program is giving me the following error

Code: Select all

Unkown identifier piecenum
The unit has 5 guns on it, and it is giving me the error for the quary and aim weapon functions.

Now this maybe because I don't have the right syntax (have been looking for it but did not find any thing)

help is appriciated, thanks

Posted: 28 May 2006, 10:49
by Guessmyname
Query weapon script:

QueryWeapon1(piecenum) //the piecenum in the brackets is probably what you're missing
{
piecenum=flare; //replace 'flare' with where-ever the weapon comes from.
}

AimWeapon1 doesn't need a piecenum. AimFromWeapon1 does though. The AimWeapon1 script is exactly the same syntax as QueryWeapon1.

Posted: 28 May 2006, 11:13
by MrSpontaneous
thanks it compiles now :-)