Home   Help Search Login Register  

Author Topic: need help with parameters!!!  (Read 494 times)

0 Members and 1 Guest are viewing this topic.

nt3n

  • Guest
need help with parameters!!!
« on: 02 Feb 2003, 18:14:07 »
I've got a little problem. I made a script to make a car explode after arming and a timer of x secs.
Now, in the Init field in the editor, to apply it to a vehicle, i used the following line:

this addAction["Arm bomb", "bomb.sqs"]

now, if i want to change the time i have to escape from the explosion, i need to look in the script.

is there a way of passing the the _timeleft parametre in an instrucion such as

this addAction ["actionname", "script.sqs"]

as you would do if the init field was

[objectname, parametre] exec "script.sqs"

????????

'coz

[objectname, parametre] addAction ["actionname", "script.sqs"]

DOESN't WORK!


TNX TNX TNX to anyone who replies => => he'll also be given credits in v. 2.0 of my script!!!!

if you want to give a look at the script, u can download this zip file

 :'(