• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Ground Shake when unit moving

Status
Not open for further replies.
Level 6
Joined
Jan 2, 2015
Messages
171

i downloaded and tried it but still dont get idea on triggers. I just want it to detect on specific unit when moving. Here's my trigger but still not working

  • On Move
    • Events
      • Game - UnitMovingEvent becomes Equal to 1.00
    • Conditions
      • (Unit-type of UDexUnits[1]) Equal to Molten Giant
    • Actions
      • Set RCSS_EventLocation = (Position of UDexUnits[1])
      • Set RCSS_EventMagnitude = 50.00
      • Set RCSS_EventMaxRange = 1000.00
      • Trigger - Run CSS New Event <gen> (ignoring conditions)
i use moving system and camera shake system but the ground shake on Molten Giant when a unit starts moving
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
You'll need a looping trigger to constantly cause a camera shake near the unit.

To use the Is Unit Moving system, you need both a start (UnitMovingEvent becomes Equal to 1.00) and a stop (UnitMovingEvent becomes Equal to 2) trigger.

On start:
Add UDexUnits[UDex] to a unit group

On stop:
Remove UDexUnits[UDex] from that unit group

Every second (or less):
Pick every unit in your unit group, set RCSS_EventLocation to the position of picked unit and run the camera shake system
 
Level 6
Joined
Jan 2, 2015
Messages
171
You'll need a looping trigger to constantly cause a camera shake near the unit.

To use the Is Unit Moving system, you need both a start (UnitMovingEvent becomes Equal to 1.00) and a stop (UnitMovingEvent becomes Equal to 2) trigger.

On start:
Add UDexUnits[UDex] to a unit group

On stop:
Remove UDexUnits[UDex] from that unit group

Every second (or less):
Pick every unit in your unit group, set RCSS_EventLocation to the position of picked unit and run the camera shake system

can you give me example of detecting moving hero? i want to add camera shake when he move
 
Level 6
Joined
Jan 2, 2015
Messages
171
it kinda works but still camera shaking when other unit beside molten giant moves.

  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set UDexUnits[1] = Molten Giant 0392 <gen>
  • On Move
    • Events
      • Game - UnitMovingEvent becomes Equal to 1.00
    • Conditions
    • Actions
      • Unit Group - Add UDexUnits[1] to Molteno
  • On Stop
    • Events
      • Game - UnitMovingEvent becomes Equal to 2.00
    • Conditions
    • Actions
      • Unit Group - Remove UDexUnits[1] from Molteno
  • Run Shake
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in Molteno and do (Actions)
        • Loop - Actions
          • Set RCSS_EventLocation = (Position of UDexUnits[1])
          • Set RCSS_EventMagnitude = 100.00
          • Set RCSS_EventMaxRange = 1000.00
          • Trigger - Run CSS New Event <gen> (ignoring conditions)
 
Level 6
Joined
Jan 2, 2015
Messages
171
You don't need to manually set UDexUnits[], the Unit Indexer trigger does this for you automatically.

On move trigger:

Event is fine
Condition: UDexUnits[UDex] == Molten Giant
Unit Group - Add Molten Giant to Molteno

(do the same for on stop trigger)

In the Run Shake trigger, use position of (Picked unit)



  • On Move
    • Events
      • Game - UnitMovingEvent becomes Equal to 1.00
    • Conditions
      • (Unit-type of UDexUnits[UDex]) Equal to Molten Giant
    • Actions
      • Unit Group - Add UDexUnits[UDex] to Molteno
  • On Stop
    • Events
      • Game - UnitMovingEvent becomes Equal to 2.00
    • Conditions
      • (Unit-type of UDexUnits[UDex]) Equal to Molten Giant
    • Actions
      • Unit Group - Remove UDexUnits[UDex] from Molteno
  • Shake
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set RCSS_EventLocation = (Position of (Picked unit))
      • Set RCSS_EventMagnitude = 100.00
      • Set RCSS_EventMaxRange = 1000.00
      • Trigger - Run CSS New Event <gen> (ignoring conditions)
sorry but i still cant make it work..any correction would be help:)
 
Last edited:
Status
Not open for further replies.
Top