I want to execute two scripts when a certain event happens
how can i do this ?
I want to execute two scripts when a certain event happens
how can i do this ?
\"This is my rifle ...\".There are many like it, but this one is MINE.
My rifle is my best friend. It is my life. I must master it as I must master my life...My rifle without me is useless. Without my rifle, I am useless...I must fire my rifle true. I must shoot straighter than my enemy who is trying to kill me...I must shoot him before he shoots me.
Maybe do addeventhandler twice, one for each of the scripts. You might also be able to just execute the other script from a script thats attached to the event handler.
Already tried thatOriginally Posted by (edc @ Aug. 22 2003,00:54)
![]()
I`m just looking for the correct typing of something like this
condition= true then execute script1 and script2
Why not call on "script2" from the first line in "script1"?
/Christer (a.k.a KeyCat)
A3 Alpha issues
0002034: Infantry auto stand-up while crawling near low walls/stone hedge
A2:OA issues
65438: Infantry auto stand-up while crawling near low walls/stone hedge
>> The journey is the reward! <<
Why not just starting two scripts right from the
eventhandler![]()
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">player addEventHandler ["killed",{_this exec "playerKilled.sqs"; _this exec "whateverelse.sqs"}]
[/QUOTE]
~S~ CD
http://www.swint.demon.nl/ofp/ofpec_work.gif
Never argue with idiots - they just take you down to their level
to beat you there with experience
arabic objects/buildings thread