Tank Turet System

Status
Not open for further replies.

ILH

ILH

Model Reviewer
Level 35
Joined
May 8, 2012
Messages
1,602
What do you think about this?
https://www.hiveworkshop.com/forums/pastebin.php?id=j975gy
Note:
Illidan(Evil)X said:
Using "GUI" for something like this is just not fast enough for a large number of tanks.

:goblin_good_job:

sorry for the model spam anyways, cuz i love modelz :ogre_love:

  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Environment - Set sky to war3mapImported\GenericSky.mdx
      • Hashtable - Create a hashtable
      • Set h = (Last created hashtable)
      • Game - Display to (All players) the text: sorry for the model...
      • Visibility - Disable fog of war
      • Visibility - Disable black mask
  • Register
    • Events
      • Unit - A unit enters (Entire map)
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Siege Engine
    • Actions
      • Unit - Create 1 Rifleman for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
      • Hashtable - Save Handle Of(Triggering unit) as (Key tank) of (Key (Last created unit)) in h
      • Hashtable - Save Handle Of(Last created unit) as (Key cannon) of (Key (Triggering unit)) in h
  • Bah
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set g = (Units of type Rifleman)
      • Unit Group - Pick every unit in g and do (Actions)
        • Loop - Actions
          • Set p = (Position of (Load (Key tank) of (Key (Picked unit)) in h))
          • Set u = (Picked unit)
          • Custom script: call SetUnitX(udg_u, GetLocationX(udg_p))
          • Custom script: call SetUnitY(udg_u, GetLocationY(udg_p))
          • Custom script: call RemoveLocation(udg_p)
      • Custom script: call DestroyGroup(udg_g)
  • Bah Copy
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set g = (Units of type Rifleman)
      • Unit Group - Pick every unit in g and do (Actions)
        • Loop - Actions
          • Set u = (Picked unit)
          • Unit - Order (Picked unit) to Stop
      • Custom script: call DestroyGroup(udg_g)
  • Diie
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Siege Engine
    • Actions
      • Unit - Kill (Load (Key cannon) of (Key (Dying unit)) in (Last created hashtable))
217749-albums6861-picture82904.png
 
Lez bump dis! Haven't seen the thing yet, but good luck on that, that would be sweet. Hey, could you put up some screenies and info on how that stuff works, for us who are unable to open world editor, pretty please?! :D
 
Status
Not open for further replies.
Back
Top