Fandom

武装突袭 Wiki

Player

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 Share

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

Introduced with Operation Flashpoint version 1.00
  

点击图片可看到更多讯息

开始使用于

游戏:
Operation Flashpoint
版本:
1.00

描述

描述:
Person controlled by player.

In MP this value is different on each computer and on dedicated server this value is null.

In Intros and Outros this isn't set by default and must be assigned.

基本句法

句法:
player
返回值:
Object

范例

范例1:
player addRating 500;

额外资讯

多人游戏:
-
问题:
In MP the command is not initialised in functions called by initline or init eventhandlers.
也可以看看:

isPlayerplayableUnitsselectPlayer

注意事项

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

Notes

Posted on 20 Jul, 2010
GalZohar
Before you use the player object (usually to avoid JIP issues) all you need is to run:

waitUntil {!isNull player};

Anything else you see in other scripts is equivalent and/or redundant. Of course JIP players may need more than just the player to point at the actual JIP player unit, but that's script/mission-specific.

Posted on 27 Jan, 2008
Dr_Eyeball
(isNull player) is true for JIP players on their client during initialization.
After initialization, it will be set, making it valid again.

To cater for this, some people use code similar to the following in their spawned scripts:

if (!isServer && (player != player)) then
{
  waitUntil {player == player};
  waitUntil {time > 10};
};

// 'player' will now be valid
_action = player addAction ["heal", "heal.sqf", [], -1, false, false, ""];


See JIP/player topic for additional helpful information.

Bottom Section

Posted on June 26, 2014 - 18:49 (UTC)
Killzone Kid
player can actually be REMOTE object on player's PC: http://www.youtube.com/watch?v=m6IILtfa3cQ

更多维基

随机维基