| 03-19-2003, 01:40 AM | #1 |
Is there ANY way to change sight range of a unit through triggers even if I have to use JASS I would appreciate knowing if I can do it. |
| 03-31-2003, 02:30 AM | #2 |
Please do not post questions in the Trigger Repository! |
| 03-31-2003, 02:50 AM | #3 |
Guest | Ceate sight blocker doodads all around the guy, using interger A/Bs to get it around in a circle. |
| 03-31-2003, 03:02 AM | #4 |
This might work, but I haven't done this before. First set the units sight range in the unit editor to the lowest possile. Next create a new custom unit and give it the sight radius which you are going to change it to. (make sure this unit is flying) Then when you want to change the sight radius create that custom flying unit, for the owner of the unit in which you want to change the sight radius, and place it overhead it. Now hide the flying unit, using Unit-Hide(...) Last you will need to create a trigger that it perodicly moves the hidden unit back overhead of the original unit. You will only want this trigger 'on' after you changed the sight radius. |
| 03-31-2003, 04:07 AM | #5 |
hidden units have no site radius |
| 04-01-2003, 02:02 PM | #6 |
Guest | Ok, for using mine, change the units site range to as big as it can get, then just use blockers to set how big his site usually is, and then there you go. |
| 04-01-2003, 02:05 PM | #7 |
you can also use a flying unit with no model and position that over the unit.. that also works |
| 04-01-2003, 03:33 PM | #8 |
You could try "create visibility modifier" and "delete visibility modifier" to make a "moving" visibility modifier that follows a unit with sightrange 0... That will probably lag though. =( |
