From Bohemia Interactive Community
Click on the images for descriptions
- Virtual Battlespace 1
- Set ObjectTextureGlobal
- obj setObjectTextureGlobal string
- obj: Object
- string: String
- Return Value:
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.