setObjectTextureGlobal (VBS2)

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Virtual Battlespace 2 version 1.00

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

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

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.

Bottom Section

Personal tools
Buy ArmA now!