Need help to find a math equation...

OneBadPsycho

10100111001
Reaction score
93
For sliding:
Code:
Move Spell
    Events
        Time - Every 0.01 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in SpellUg and do (Actions)
            Loop - Actions
                Set LocSU = (Position of (Picked unit))
                Set AngleSU = (Facing of (Picked unit))
                Set MoveLocSU = (LocSU offset by 10.00 towards AngleSU degrees)
                Unit - Move (Picked unit) instantly to MoveLocSU
                Custom script:   call RemoveLocation (udg_LocSU)
                Custom script:   call RemoveLocation (udg_MoveLocSU)
Hitting a wall: (This is the upper wall)
Code:
Wall 1
    Events
        Unit - A unit enters Bound 1 <gen>
    Conditions
        ((Entering unit) is in SpellUg) Equal to True
    Actions
        Trigger - Turn off (This trigger)
        Set OLoc = (Position of (Entering unit))
        Set OAngle = (Facing of (Entering unit))
        Set OType = (Unit-type of (Entering unit))
        Set OPlayer = (Owner of (Entering unit))
        Set OExp = (Life of (Entering unit))
        Unit Group - Remove (Entering unit) from SpellUg
        Unit - Remove (Entering unit) from the game
        Unit - Create 1 OType for OPlayer at OLoc facing (OAngle x (2.00 x (270.00 - OAngle))) degrees
        Unit - Set life of (Last created unit) to OExp
        Unit Group - Add (Last created unit) to SpellUg
        Custom script:   call RemoveLocation (udg_OLoc)
        Custom script:   set udg_OExp = 0
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top