Results 1 to 4 of 4

Thread: Scripting Help

  1. #1
    Balls...Of...STEEL Superman's Avatar
    Join Date
    Jul 2007
    Posts
    14

    Scripting Help

    i am a little confused on how to make the (portable) grav lift effect...

    Code:
    (script dormant Grav_Lift_Effect
        (if (= ( wenever grav lift [equipment tag] is dropped)) true)
            ;would there be a damage modifier here that does the lifting?
        )
    )
    Reply With Quote

  2. #2
    {TAGZ} FLOOD55 Flood55's Avatar
    Join Date
    Oct 2006
    Posts
    103

    Re: Scripting Help

    Well first you have to use the functions available in the game engine, not ones made up like "whenever grav lift is dropped". I suggest going into sapien and find valid functions in there to help you (you can just type help before the function to give its meaning and syntax).
    Reply With Quote

  3. #3
    Balls...Of...STEEL Superman's Avatar
    Join Date
    Jul 2007
    Posts
    14

    Re: Scripting Help

    well, by whenever grav lift is dropped" i wanted to know the function for dropping an object or equipment, i looked in the scripting bible and i couldnt find anything. I know its not a real function, it was just there as a reference.
    Reply With Quote

  4. #4
    Booted from Halomaps Tarzan's Avatar
    Join Date
    Jul 2007
    Location
    Dectaur, Illinois
    Posts
    161

    Re: Scripting Help

    you'd probably want to do that with the (unit_has_weapon) argument, because if I'm not mistaken, the grav lift was implemented as a third weapon? Anyway, you'd want to test for the unit_has_weapon, then unit_has_weapon_readied, and then the unit_has_weapon again. However, it may be that the grav lift deploys itself as a firing effect. In that case, you wouldn't need a script.

    The actual lifting would prolly be done with some markers on the model itself and a damage effect that doesn't really damage anything, just lifts MC up. Basically, the way you would go about scripting this depends entirely on what sort of item your lift is, be it weapon, nade, or something else.
    Reply With Quote

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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