canStand: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[.*\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (Text replacement - "SQS" to "SQS")
Line 18: Line 18:
[[true]] if he's still able to stand up, [[false]] if not. Automatically return [[false]] if unit is vehicle.
[[true]] if he's still able to stand up, [[false]] if not. Automatically return [[false]] if unit is vehicle.
   
   
|x1= [[SQS]]: <code>?!([[canStand]] [[player]]) : [[player]] [[groupChat]] "My legs! They hit my legs!"</code>
|x1= [[SQS Syntax|SQS]]: <code>?!([[canStand]] [[player]]) : [[player]] [[groupChat]] "My legs! They hit my legs!"</code>


|x2= <code>[[if]] (![[canStand]] [[player]]) then  
|x2= <code>[[if]] (![[canStand]] [[player]]) then  

Revision as of 23:58, 24 March 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
Parameters:
unitName: Object
Return Value:
Return value needed

Examples

Example 1:
SQS: ?!(canStand player) : player groupChat "My legs! They hit my legs!"
Example 2:
if (!canStand player) then { player groupChat "My legs! They hit my legs!"; };

Additional Information

See also:
canMovecanFire

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Kronzky
The command may return true for dead units.