Product Chat / is AISetEntityViewRange going to be implemented in lua?

Author
Message
Ratall
16
Years of Service
User Offline
Joined: 29th Jun 2008
Location: Not Here
Posted: 27th Mar 2018 05:24 Edited at: 27th Mar 2018 05:25
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
PM

Login to post a reply

Server time is: 2024-10-06 14:24:18
Your offset time is: 2024-10-06 14:24:18