🏆 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!
🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!
I have been exploring the editor, and one thing I am trying to figure out is have a trigger get activated by having vision on an area/region. Thank you in advance for the help!
True, there is no such function. But there are only a few ways that you can gain visibility of an area at all:
- Unit in range (provides sight to player and all Shared Vision allies)
- Visibility Modifier
- Reveal skill cast
- Unit attacks from fog
Maybe a few I'm forgetting?
Anyways, these events are easily detectable. So you can probably put together something for what you need
there is a way to do it actually, give me a bit and i'll give you a map, the triggers will be a little complex, nothing major though
EDIT:
something along the lines of this i'd assume, you need to create a dummy unit at the position of your units target, if that dummy unit is created inside a region have it then check if the dummy unit is a certain distance from you hero, if it is say 200 from your unit then have it run a trigger
when you issue an order
Events
Unit - A unit Is issued an order targeting a point
Conditions
(Unit-type of (Triggering unit)) Equal to Sylvanas Windrunner
Actions
Set targetedpoint = (Target point of issued order)
Unit - Create 1 Dummy Unit for (Triggering player) at targetedpoint facing Default building facing degrees
Set Dummyunit = (Last created unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Region 000 <gen> contains Dummyunit) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Dummyunit is in (Units within 200.00 of Yourunitpos)) Equal to True
Then - Actions
Quest - Display to (All players) the Quest Update message: Works
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.