setObjectTextureGlobal (VBS2)
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Virtual Battlespace 2
- Version:
- 1.00
Description
- Description:
- Set the texture of the given selection on all computers in a network session.
Syntax
- Syntax:
- object setObjectTextureGlobal [selection,texture,evaluation]
- Parameters:
- object: Object
- selection: String
- texture: String
- evaluation: String - Expression is executed on each client. If true then the texture is set on that client (optional, default=true).
- Return Value:
Examples
- Example 1:
player setObjectTextureGlobal ["face","\MyAddon\blue.pac","side _this == west"]
Additional Information
- Multiplayer:
- Behaviour unknown.
Notes
Notes
Notes
-
The selections must be registered in the "hiddenSelections" entry of the config.cpp, and in the "selections" entry of the model.cfg for the object.
'Selection' can be either a number, with the index of the selection in the "hiddenSelections" config entry; or it can be a string describing the selection name in the model.
If you set the texture to "#reset", it will reset the selection to its starting/default texture.

