Page MenuHomeFeedback Tracker

isMan to quickly check if entity is man
Closed, ResolvedPublic

Description

I'd like to request a scripting command to quickly check if entity is a man. There are lots of use cases and to reliably tell that you have to access entity's simulation config string which is a lot of commands for a single check. Newbies also fall into trap of doing isKindOf "Man" check which includes animals.

Lots of command process both vehicles and units (Killed, HandleDamage, etc.) and very often you need to act depending on if entity is a man or not, having such scripting command will make things easier and give a small performance gain when check is needed lots of times per frame.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting
Additional Information

Suggested syntax:

BOOL = isMan ENTITY;

Alternative command name could be isEntityMan

Event Timeline

SaMatra created this task.Jan 11 2024, 4:02 PM
BIS_fnc_KK set Ref Ticket to AIII-56193.Jan 12 2024, 3:24 AM

Revision: 151278 Added alt syntax to getEntityInfo script command for fast access and isMan property

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Jan 12 2024, 3:28 AM
BIS_fnc_KK changed the task status from New to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.

Works great, can be closed as resolved

BIS_fnc_KK closed this task as Resolved.Jan 18 2024, 3:34 PM