- Joined
- Jun 27, 2010
- Messages
- 2,770
Hello, what would be the best trigger check to see if the camera "sees" your hero?
i cant't open ur map bro. levelinfo missing.You can get the Camera Target Position X and Y. With that you can do something like:
It obviously depends on what Stan wants to do in his map, but I want to note that it's perfectly fine to use periodic timers, it's how you use them that matters.What's the scenario, when would you like to check if a hero is within camera bounds? Because you should avoid checking X variable every Y seconds.. it's bad for your map!
What's the scenario, when would you like to check if a hero is within camera bounds? Because you should avoid checking X variable every Y seconds.. it's bad for your map!
That's perfectly fine as long as the map is singleplayer only. Edit: Otherwise, I believe it would desync.Hey, I see many replies since my last visit. I was working on my map.
So, the idea is, whenever your hero is attacked, and your camera is not "seeing" him, to pan the camera to his position.
I used the idea of Uncle and it works well. I didn't notice any bugs with it so far...
It's 5-man multiplayerThat's perfectly fine as long as the map is singleplayer only. Edit: Otherwise, I believe it would desync.
Have you tested it online and can I see your trigger?It's 5-man multiplayer
the trigger does nto check every 0.10 secs but only when the heroes are attacked.
i just editedHave you tested it online and can I see your trigger?