Is this command going to be implemented in Lua
AISetEntityViewRange
Usage:
AISetEntityViewRange(obj,distance)
Where:
obj = The id of the object to set the view range
distance = The maximum distance the object can see.
Description:
This command sets the distance the entity can see from its current location. Anything within this distance and within its view angle can be seen by the entity. The default value is 60 DarkBasic units.
This command should be used with AISetEntityViewArcs to completely define the area the entity can see.
I notice that it's companion has been implemented
AIGetEntityViewRange
Usage:
distance = AIGetEntityViewRange(obj)
Where:
obj = The id of the object to set the view range
distance = The maximum distance the object can see.
Description:
This command gets the distance the entity can see from its current location. Anything within this distance and within its view angle can be seen by the entity.
Examples:
ai_fantasycharacter.lua
ai_fantasycreature.lua
\ai\module_combatcore.lua
\ai\module_combatshoot.lua
If not will there be a way to dynamicly alter the range at which an entity can see for example to refect weather conditions, residual effects of flash-bangs etc.
“Everything should be made as simple as possible, but not simpler.”
Albert Einstein