I would like to make an optimized collision detection using an event "Unit enters region" where the region is a new created region attached to the missile unit.
Do you know a way to add a custom event to a trigger using another trigger? I think it was possible in WC3 editor...
Even behaviours use a timed check soo I think it would be the same thing of using a timed trigger check.
However I can't use just behaviours cause I need to check a 3d collision and it seems that behaviours just check for 2d range.
This assumes that you've previously defined three variables prior to calling the method: trigger, unit and region which point to the values you want to track
Mmmm i think I cannot use this for my 3d collision but It would be awesome for 2d.
Unfortunately the trigger just checks for region enter and I would need a 3d region for that xD
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I would like to make an optimized collision detection using an event "Unit enters region" where the region is a new created region attached to the missile unit.
Do you know a way to add a custom event to a trigger using another trigger? I think it was possible in WC3 editor...
I can't answer your question directly - but have you tried behavior/effect based collision detection? There's a great example map on this thread:
http://forums.sc2mapster.com/development/map-development/397-making-a-rocket-launcher-missile-that-collides-with/
Even behaviours use a timed check soo I think it would be the same thing of using a timed trigger check.
However I can't use just behaviours cause I need to check a 3d collision and it seems that behaviours just check for 2d range.
Any idea?
@Bibendus: Go
You'll have to drop down to galaxy code for this one, I think. Call the following with a custom code block:
This assumes that you've previously defined three variables prior to calling the method: trigger, unit and region which point to the values you want to track
Mmmm i think I cannot use this for my 3d collision but It would be awesome for 2d.
Unfortunately the trigger just checks for region enter and I would need a 3d region for that xD