setObjectTextureGlobal (VBS1)
From Bohemia Interactive Community
Click on the images for descriptions
Introduced in
- Game:
- Virtual Battlespace 1
- Version:
- 2.12.14
Description
- Description:
- Set ObjectTextureGlobal
Syntax
- Syntax:
- obj setObjectTextureGlobal string
- Parameters:
- obj: Object
- string: String
- Return Value:
- Nothing
Examples
Additional Information
- Multiplayer:
- -
Notes
Notes
Notes
-
The standard setObjectTexture in OFP and VBS1 is local only, and addon developers have to create custom systems to verify that textures are mapped correctly for all instances of the model of a particular object across all client machines. setObjectTextureGlobal is a multiplayer intended command, that only needs to be executed once on the server, rather than once on each client machine. All other parameters and behaviors are identical to setObjectTexture.
There is a bug in VBS1 2.12.14 where attempting to setObjectTextureGlobal a vehicle that no longer exists, causing a CTD. This is most commonly observed in high-refresh scenarios where a setObjectTextureGlobal command is sent before the script controlling machine recieves an update that the object no longer exists.