Page 1 of 1

'nother question: how do you use the 'if' in script editor?

PostPosted: Thu Dec 16, 2004 10:04 pm
by willg101
how do you use the 'if' in script editor
like, do you say if [var1] [condition] [var2] then [action]
if so, how do you do multiple actions?

PostPosted: Thu Dec 16, 2004 11:56 pm
by makslane
Use the C syntax: if(condition) execute true code here;

Code: Select all
if(xvelocity == 0.0)
{
   //Your actions here
    MoveTo("Event Actor", 0.000000, 0.000000, 1.000000);
    DestroyActor("enemy");
}