able to 'see' other object but can't see through walls.
Extract to Construct 2\exporters\html5\plugins
A sentry cast rays from it's position in a cone, and is able to 'see' other objects with it's rays. The number of rays can be set as well as angle of view and length of each ray. The rays will be visible in the editor but not in game. Sentry can not see an object if it is hidden behind a blockade (can be wall, crate, etc).
- you must call 'Initialize' action for each sentry object at 'On Start Layout'
- you must add all blockade objects at 'On Start Layout'
- if your sentry has defined blockades, you must call 'Search for Blockade' action at 'Every Tick' before calling it's 'See other object' conditions.
- Every time you change the sentry's position or angle, you must call it's 'Recalculate rays' action. Don't have to do so for other parameters.
If this confuses you, just look at the example. It's pretty straight forward.
This plugin is a success but it has not been useful for my purpose so I won't be updating it any time soon. If you fix or improve any part of it, you should post it on your own thread and link to this topic I suppose.