BIS_fnc_setObjectTexture

From Bohemia Interactive Community
Revision as of 10:54, 18 January 2021 by Lou Montana (talk | contribs) (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|Multiplayer Effects(...)
Jump to navigation Jump to search
-wrong parameter ("globargument") defined!-LELocal
Hover & click on the images for description

Description

Description:
Set object textures.
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
[object, textures] call BIS_fnc_setObjectTexture
Parameters:
object: Object
textures: String or Array of Strings
Return Value:
Boolean - true when done

Examples

Example 1:
[player, "#(rgb,8,8,3)color(0,0,1,1)"] call BIS_fnc_setObjectTexture;
Example 2:
[ vehicle player, [ "#(rgb,8,8,3)color(1,0,0,1)", "#(rgb,8,8,3)color(0,1,0,1)", "#(rgb,8,8,3)color(0,0,1,1)" ] ] call BIS_fnc_setObjectTexture; // identical to: // vehicle player setObjectTexture [0, "#(rgb,8,8,3)color(1,0,0,1)"]; // vehicle player setObjectTexture [1, "#(rgb,8,8,3)color(0,1,0,1)"]; // vehicle player setObjectTexture [2, "#(rgb,8,8,3)color(0,0,1,1)"];

Additional Information

See also:
getObjectTexturessetObjectTexturesetObjectTextureGlobal

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