Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.24

Description

Description:

Returns the "up degree" of the soldier. This indicates whether the unit is prone, kneeling, or standing, as well as what weapon type is being used.

Below is a list of stances and their return values:

  • rifle - lowered, standing/sitting: 10
  • rifle - raised, standing: 8
  • rifle - on back: 10
  • rifle - crouched: 6
  • rifle - prone: 4
  • pistol - standing: 9
  • pistol - crouched: 7
  • pistol - prone: 5
  • pistol - safe position: 26
  • pistol - holstered ("on back" action): 10
  • launcher - standing: 15
  • launcher - crouched: 15
  • launcher - prone: 17
  • launcher - on back: 15
  • unarmed - standing/sitting: 12
  • unarmed - prone: 3
  • vehicles / static objects / non people: -1

Syntax

Syntax:getUpDegree unit
Parameters:
Return Value:Number

Examples

Examples:
_updeg = getUpDegree player

Additional Information

See also: setUnitPos, animationState, fn vbs getUnitPos, fn vbs selectedWeaponType
Multiplayer: 
Problems: 

Notes