Fandom

武装突袭 Wiki

SetObjectTextureGlobal

简体 | 繁體

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

您使用了广告屏蔽软件!


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

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

Introduced with Arma 3 version 1.06
  Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network

点击图片可看到更多讯息

开始使用于

游戏:
Arma 3
版本:
1.06

描述

描述:
Set the texture of the given selection on all computers in a network session.

基本句法

句法:
obj setObjectTextureGlobal [selection, texture]
参数:
obj: Object

[selection,texture]: Array

selection: Number

texture: String
返回值:
Nothing

范例

范例1:
player setObjectTextureGlobal [0, "\MyAddon\blue.paa"];

范例2:
//set up persistent texture keeper player addEventHandler ["Take", { (getObjectTextures player + [uniformContainer player getVariable "texture"]) params ["_texUniform", "_texInsignia", "_texCustom"]; if (isNil "_texCustom") exitWith {}; if (_texUniform == _texCustom) exitWith {}; player setObjectTextureGlobal [0, _texCustom]; false }];


//Example: make current uniform persistently blue

_texture = "#(rgb,8,8,3)color(0,0,1,1)"; //blue texture player setObjectTextureGlobal [0, _texture]; //set it on player uniformContainer player setVariable ["texture", _texture, true]; //store it on uniform

额外资讯

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

setObjectTexturegetObjectTexturessetObjectMaterial

注意事项

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

Notes

Bottom Section

Posted on March 8, 2015 - 21:15 (UTC)
Sxp2hiiigh
The effect is persistent and will be synchronized for players who join in progress. (Tested with Arma 3 v1.40)

Posted on December 29, 2015 - 18:13 (UTC)
Elch2070
In some cases the ".paa" files do not work. Instead you can try ".jpg" files.

更多维基

随机维基