- Joined
- Jul 19, 2010
- Messages
- 99
So i have tried to make a flashlight to increase the units vision distance but i can't find a trigger or ability that will increase the units vision distance while the flashlight is in the inventory, help? Thanks!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
You can make vision modifiers over the unit. Might not be as responsive as real LoS boost but still.
I also think there was some scope item ability which boosted LoS.
Item Trigger

Events


Unit - A unit Acquires an item

Conditions


(Item-type of (Item being manipulated)) Equal to Goblin Night Scope

Actions


Set Temp_Point00[(Player number of (Owner of (Triggering unit)))] = (Position of (Triggering unit))


Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 500.00


Set Temp_ItemVisMod00[(Player number of (Owner of (Triggering unit)))] = (Last created visibility modifier)
ItemLost Trigger

Events


Unit - A unit Loses an item

Conditions


(Item-type of (Item being manipulated)) Equal to Goblin Night Scope

Actions


Visibility - Destroy Temp_ItemVisMod00[(Player number of (Owner of (Triggering unit)))]


Custom script: call RemoveLocation(udg_Temp_Point00[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
Hah, I have forgotten about that since I though guys before me checked object editor already. My test map still works great but adding this ability (rawcode 'Alsi') is just simpler. However, if you want to manipulate day sight in differend way than night vision (for egzample in day +250, in night +100) dummy unit creation system proves to be better.There is an ability ( to find it CTRL + F enter Item Sight Range Bonus ) and add it to the item. It will workNo dummies, or triggers
Also, he's not asking for Day/Night vision, so, stick to the topic, lol.
Just increase its vision by using the Item Sight Range Bonus, that's it.
