skripting error

skripting error

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
MrSpontaneous
Posts: 242
Joined: 09 Sep 2005, 22:39

skripting error

Post 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
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Post 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.
User avatar
MrSpontaneous
Posts: 242
Joined: 09 Sep 2005, 22:39

Post by MrSpontaneous »

thanks it compiles now :-)
Post Reply

Return to “Game Development”