Results 1 to 5 of 5

Thread: Delaying code using the "~"

  1. #1

    Unhappy

    In the Official command reference it states under
    script syntax:
    Delay: line starting with '~'.
    Example: ~delay is equivalent to _waitUntil = _ time +
    (cas) ; & _waitUntil

    so how would I use this? I want to delay a line for the
    Initialization of an object. Also, could it be used between
    statements in a line? example:
    a = 1; b = 2; c = 3
    could I just delay b = 2 or would I have to delay the entire
    line? Any help would be great




  2. #2
    You can use it (~) only in script. Not in init line or in function.
    -...\"Is artificial ?\"
    -\"Of course, it is.\"
    -\"Must be expensive.\"
    -\"VERY\"...

  3. #3
    hmm... so I can't do it outside of a script? That sucks. Thanks
    for helping me out though!

  4. #4
    Retired Moderator RalphWiggum's Avatar
    Join Date
    Jan 5 2002
    Location
    Implantsville, CA, USA
    Posts
    12,607
    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Bart.Jan @ Dec. 10 2002,22:30)</td></tr><tr><td id="QUOTE">You can use it (~) only in script. Not in init line or in function.[/QUOTE]<span id='postcolor'>
    yup..in my early days i tried it in trigger init/condition and didn&#39;t work.

    another way would be having a trigger activated after certain time elapses. create a trigger, and in the middle, there whould be a setting called &#39;countdown&#39; and another one right below it. choose the one that is below &#39;countdown&#39; and set the time on the right (in seconds)

    what happens is when conditions are satisfied, it&#39;ll wait until given time passes and will activate the activation commands.
    Please read Forum Rules

  5. #5
    What i was really trying to do was delay an animation
    on the plane I am making. I wanted the landing gear to
    be animated using event handlers, but I still haven&#39;t found
    a way to have the gear retract and then have the
    doors close. I need to delay the animation of the doors
    by 2 seconds when the gear goes up and delay the gear
    3 seconds when the gear is lowered. Does anyone have more
    information about animations? I&#39;ve tried many things, but
    It still doesn&#39;t work

Posting Permissions

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