[plugin] Sentry

Post your completed addons to share with the community

Post » Mon May 07, 2012 6:34 am

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.
Posts: 5
Reputation: 367

Post » Sat Jun 01, 2013 10:09 pm


I know you said you won't be updating it any time soon, still it would be nice if you could have a look...


El Yoth
Posts: 14
Reputation: 2,409

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 5 guests