Player::setCombatAttributes

From RAGE Multiplayer Wiki

These combat attributes seem to be the same as the BehaviourFlags from combatbehaviour.meta.
So far, these are the equivalents found:
enum CombatAttributes
{
BF_CanUseCover = 0,
BF_CanUseVehicles = 1,
BF_CanDoDrivebys = 2,
BF_CanLeaveVehicle = 3,
BF_CanFightArmedPedsWhenNotArmed = 5,
BF_CanTauntInVehicle = 20,
BF_AlwaysFight = 46,
BF_IgnoreTrafficWhenDriving = 52,
BF_FreezeMovement = 292,
BF_PlayerCanUseFireingWeapons = 1424
};

Research thread: gtaforums.com/topic/833391-researchguide-combat-behaviour-flags/

Syntax

player.setCombatAttributes(attributeIndex, enabled);

Required Arguments

  • attributeIndex: int
  • enabled: Boolean

Return value

  • Undefined

Example

// todo

See also