isPlayer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Link made active.)
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|ISPLAYER]]
{{Command|= Comments
[[Category:Scripting Commands ArmA|ISPLAYER]]
____________________________________________________________________________________________


| arma |= Game name


<h2 style="color:#000066">''' isPlayer ''person'''''</h2>
|2.92|= Game version
____________________________________________________________________________________________


| Check if given person is a human player. It is not the same as testing object == [[player]], because in MP it tests for any player, not only for the local one. If object is a vehicle, the test is done for the vehicle commander. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''isPlayer''' person |= Syntax


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


'''Type of returned value:'''
| [[Boolean]] |= Return value
____________________________________________________________________________________________


[[Boolean]]
|  |= See also


'''Compatibility:'''
}}


Version 2.92 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Check if given person is a human player. It is not the same as testing object == [[player]], because in MP it tests for any player, not only for the local one. If object is a vehicle, the test is done for the vehicle commander.
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|ISPLAYER]]
[[Category:Scripting Commands ArmA|ISPLAYER]]

Revision as of 00:37, 2 August 2006

-wrong parameter ("Arma") defined!-2.92
Hover & click on the images for description

Description

Description:
isPlayer person
Groups:
Uncategorised

Syntax

Syntax:
Boolean
Parameters:
person: Object
Return Value:
Return value needed

Examples

Examples:
Example needed

Additional Information

See also:
See also needed

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