武装突袭 Wiki
Advertisement
  Arguments of this scripting command don't have to be local to the client the command is executed on

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.00

描述

描述:
Check if given person is a human player.

基本句法

句法:
isPlayer person
参数:
person: Object
返回值:
Boolean

范例

范例1:
if (isPlayer _Soldier1) then { _Soldier1 setDamage 1; };
范例2:
_playerCount = {isPlayer _x} count playableUnits;

额外资讯

多人游戏:
-
也可以看看:
playerplayableSlotsNumberplayableUnitsplayersNumber

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Posted on 1 August, 2006
Kronzky
This 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.

Bottom Section

Advertisement