• 🏆 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!

2 questions

Status
Not open for further replies.
Level 11
Joined
Mar 8, 2006
Messages
277
1. Man i have noticed that if a unit has move speed 0 and movetype none u cant turn colision on\off from a trigger.
How i u turn the colision size on or off from a trigger?

I can do it with replace that unit unit another one who has no colision but create some trigger that blocks that unit somehow but there is no other thing?

2. Man i asked this but i didnt solved it.

I want to move a unit in a pozition lets say diagonal depenging on that unit angle.

I DONT WANT UP OR DOWN coz i know that is easy.

DONT give me this: Move unit instantly to poztion offested by 150 facing that unit angle.

I need something like this: Move unit instantly to poztion ofset by x150 y264 facing that units angle.
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Modify the facing angle:
  • Unit - Move (Triggering unit) instantly to ((Position of (Triggering unit)) offset by 256.00 towards ((Facing of (Triggering unit)) + 30.00) degrees)
Or convert coordinates to point:
  • Unit - Move (Triggering unit) instantly to (Point(((X of (Position of (Triggering unit))) + 150.00), ((Y of (Position of (Triggering unit))) + 200.00)))
Note that these leak.
 
Level 11
Joined
Mar 8, 2006
Messages
277
Man i am doing a fighting map (with wrestling moves) and i know what i want to do but i am facing bugs i can do animations but may i ask somebody when the map will be more complex to check and prefect my triggers?
 
Level 9
Joined
Jun 7, 2008
Messages
440
DSG is right in that aspect. If it is a wrestling move, you can turn it off via the -
  • Actions
    • Unit - Turn collision On/Off for unit
You can then create another trigger (or add to the same function (JASS)) checking the condition every .3 or whatever to see if you pass through the unit and turn it back on.
 
Last edited:
Status
Not open for further replies.
Top