Page MenuHomeFeedback Tracker

Add 'inBuilding' scripting commands
Acknowledged, WishlistPublic

Description

Since the sound engine now knows your surroundings it would be nice to have some of that knowledge accessible via scripting commands, the most useful command that comes to mind is the ability do determine if given object or position is inside a building.

So, something like:

isInBuilding <object/position>
<object/position> isInBuilding <building>

  • Would return boolean based on whether the given unit/position is inside a or given building.
  • Example: if (isInBuilding loon1) then {hint "loon1 is in the house"};

inBuilding <object/position>

  • would return the building the given object/position is in
  • Or go further and in case of object given would return an array of [<building>, <buildingPos the unit is possibly in>]
  • Example: if ((inBuilding loon1 select 0) == (inBuilding player select 0)) then {hint "Look out! loon1 is there"};

Details

Legacy ID
1480145429
Severity
None
Resolution
Open
Reproducibility
N/A
Category
Feature Request

Event Timeline

h- set Category to Feature Request.Aug 27 2015, 11:09 AM
h- set Reproducibility to N/A.
h- set Severity to None.
h- set Resolution to Open.
h- set Legacy ID to 1480145429.May 8 2016, 12:34 PM