From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- Set the texture of the given selection on all computers in a network session.
- Multiplayer:
- The effect is JIP compatible.
- Problems:
- If executed from an object's init field (which should not be done anyway for GEGlobal commands), execution may happen too early and fail to broadcast over the network and to be JIP compatible.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- object setObjectTextureGlobal [selection, texture]
- Parameters:
- object: Object
- selection: Number or
2.10 String - index of the selection. It is defined in the hiddenSelections array in the vehicle's config (starting with 0). If a string is given, it referes to a hiddenSelection name or clan selection instead of an index.
- texture: String - path to texture. Since
2.20 using "#reset" would reset to default texture. - Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- setObjectTexture getObjectTextures setObjectMaterial forceFlagTexture
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here!
Add Note
- Killzone_Kid - c
- Posted on Oct 24, 2016 - 12:13 (UTC)
-
Sometimes it could be necessary to set default material on an object for the texture to take effect:
Courtesy of Larrow
- whiztler - c
- Posted on Sep 13, 2022 - 21:04 (UTC)
-
Following Killzone_Kid's note, a sleep after the setObjectMaterialGlobal and before the setObjectTextureGlobal command is sometimes needed to ensure the texture effect is carried out correctly.
Note that you need to run above code in a scheduled environment.