So I want a condition to return true when a point is within the camera of a player. Or, in other words, when a point is in sight of a player's camera. Anyone?
I am sure it's possible. I mean, the Blizzard SC2 Tutorial has something like that. I tried looking at their map and copied their condition but for some reasons, did not work on my map.
(Distance between (Current camera target of player 1) and (other point) <= 10.0
It's the distance between 2 points condition. I think camera target of player is the center of their view, but I'm not sure as I don't remember the last time I used it... if at all.
If you only have the area the camera is at revealed for the player, you could use the point is visible for player function, but other than that I think that you'd have hard time referencing yaw, pitch, zoom, and camera target to figure out where excatly they can see.
So I want a condition to return true when a point is within the camera of a player. Or, in other words, when a point is in sight of a player's camera. Anyone?
Im not aware of any inbuilt conditions like this. You will most likely have to create your own function.
I am sure it's possible. I mean, the Blizzard SC2 Tutorial has something like that. I tried looking at their map and copied their condition but for some reasons, did not work on my map.
Maybe you could try something like this?
(Distance between (Current camera target of player 1) and (other point) <= 10.0
It's the distance between 2 points condition. I think camera target of player is the center of their view, but I'm not sure as I don't remember the last time I used it... if at all.
If you only have the area the camera is at revealed for the player, you could use the point is visible for player function, but other than that I think that you'd have hard time referencing yaw, pitch, zoom, and camera target to figure out where excatly they can see.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
you can do it based of player clicks. kinda half assed.