setObjectTextureGlobal (VBS1)

From Bohemia Interactive Community
Jump to: navigation, search
Introduced in Virtual Battlespace 1 version  2.12.14

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

Example 1:
Example needed

Additional Information

Multiplayer:
-
See also:
See also needed

Notes

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

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.

Bottom Section