Staredit Network

Staredit Network -> UMS Assistance -> Can the "Set Vision" triggers execute faster ?
Report, edit, etc...Posted by Mydas on 2006-03-08 at 05:09:29
I wanna make some cloaked bunkers, without revealing unexplored map to Player 1. This worked :

- set OFF self vision
-> set ON vision for bunker computer
-> set OFF vision for bunker computer
-> set ON self vision

with certain waits in between. but for them not to overlap, i've used a 8 second wait between No1 and No2 ... turning off self vision takes a very long time, anybody know why and how to solve it ?
Report, edit, etc...Posted by Kenoli on 2006-03-08 at 05:31:20
The vision settings take effect immediately, but you may not be able to tell untill there is a change in the fog of war, and the fog of war only refreshes itself every few seconds.

So, it's possible to turn vision on and back off without actually giving any vision for the target player. This is how you can cloak buildings without ever showing them to the player.

Turning Player1's vision off for himself won't do anything, and neither will the long wait times. A trigger like this should do the trick:
Trigger
Players:
¤ Player 1
Conditions:
¤ (After you disable the Bunkers)
Actions:
¤ Execute AI script 'Turn OFF Shared Vision for (Bunker Computer)'.
¤ Wait for 0 milliseconds.
¤ Execute AI script 'Turn ON Shared Vision for (Bunker Computer)'.

Report, edit, etc...Posted by HeRtZ on 2006-03-08 at 05:35:47
I thought the wait has to be atleast 1000 milliseconds, if it's done that fast won't it not activate?
Report, edit, etc...Posted by Kenoli on 2006-03-08 at 05:49:47
QUOTE
I thought the wait has to be atleast 1000 milliseconds, if it's done that fast won't it not activate?
You thought wrong.
Report, edit, etc...Posted by Mydas on 2006-03-08 at 06:17:02
QUOTE(Kenoli @ Mar 8 2006, 04:31 AM)
A trigger like this should do the trick:





Trigger
Players:
¤ Player 1
Conditions:
¤ (After you disable the Bunkers)
Actions:
¤ Execute AI script 'Turn OFF Shared Vision for (Bunker Computer)'.
¤ Wait for 0 milliseconds.
¤ Execute AI script 'Turn ON Shared Vision for (Bunker Computer)'.

[right][snapback]441366[/snapback][/right]



that doesn't make sense. first, you turn off the shared vision (which is already off) - nothing much. then you turn it on ... which results in exploration of the whole map. are you SURE this is the way to go ?


here's a map with the 2 vision scripts switched. still not working (bunk should be cloaked when visiting center with fenix)
Report, edit, etc...Posted by Kenoli on 2006-03-08 at 07:39:05
Oops, I got it backwards. It's ON then OFF. =P

Look at this.[attachmentid=17740]
Report, edit, etc...Posted by Mydas on 2006-03-08 at 08:14:47
Thank you very much ... biggrin.gif

It seemed to me that it didn't work because I disabled teh bunkers in P2 triggers, instead of P1. Now working ^_^
Next Page (1)