canStand: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|CANSTAND]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|CANSTAND]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|CANSTAND]]
 
[[Category:Scripting Commands ArmA|CANSTAND]]
| ofp |= Game name


|1.00|= Game version


<h2 style="color:#000066"> '''canStand ''soldier'''''</h2>
|arg= global |= Arguments in MP
____________________________________________________________________________________________


| Returns if the given soldier is able to stand up. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''canStand''' soldier |= Syntax


'''soldier:''' [[Object]]
|p1= soldier: [[Object]] |= Parameter 1


'''Type of returned value:'''
| [[Boolean]] - 
true if he's still able to stand up, false if not |= Return value
____________________________________________________________________________________________
 
|x1= <pre>?!(canStand player) : player groupChat "My legs! They hit my legs!"</pre> |= Example 1
____________________________________________________________________________________________


[[Boolean]]
| [[canMove]], [[canFire]] |= See also


'''Description:'''
}}


Check if '''soldier''' is able to stand up.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


? '''canStand''' [[player]] : [[goto]] "regroup"
[[Category:Scripting Commands|CANSTAND]]
[[Category:Scripting Commands OFP 1.96|CANSTAND]]
[[Category:Scripting Commands OFP 1.46|CANSTAND]]
[[Category:Scripting Commands ArmA|CANSTAND]]

Revision as of 23:38, 1 August 2006

Hover & click on the images for description

Description

Description:
Returns if the given soldier is able to stand up.
Groups:
Uncategorised

Syntax

Syntax:
canStand soldier
Parameters:
soldier: Object
Return Value:
Boolean - true if he's still able to stand up, false if not

Examples

Example 1:
?!(canStand player) : 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

Notes

Bottom Section