Results 1 to 5 of 5

Thread: Eventhandlers

  1. #1

    Unhappy

    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.

  2. #2
    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.




  3. #3
    Quote Originally Posted by (edc @ Aug. 22 2003,00:54)
    Maybe do addeventhandler twice, one for each of the scripts. ***
    Already tried that

    I`m just looking for the correct typing of something like this

    condition= true then execute script1 and script2

  4. #4
    Why not call on "script2" from the first line in "script1"?

    /Christer (a.k.a KeyCat)

  5. #5
    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 &#91;&#34;killed&#34;,{_this exec &#34;playerKilled.sqs&#34;; _this exec &#34;whateverelse.sqs&#34;}&#93;
    [/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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •