Jump to content
Spriterfight

Check if unit of a side is in the radius of another unit

Recommended Posts

I want that if the unit sees a target or detects a target then it will trigger an acton for him.My idea is i would create a radius for the unit attach to them and if the unit is in that radius then the trigger will activate.But i i have no idea how can i make an araea or radius for an unit via script ,i tried createMarker and attach it to the unit but markers can not be attached to units.Any idea?Maybe if i add an firednear eventhandler and filter the unit's side...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×