BIS fnc setObjectTexture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 11: Line 10:


|eff= local |MPEFFECTS=
|eff= local |MPEFFECTS=
____________________________________________________________________________________________


| Set object textures. |DESCRIPTION=
| Set object textures. |DESCRIPTION=
____________________________________________________________________________________________


| [object, textures] call [[BIS_fnc_setObjectTexture]] |SYNTAX=
| [object, textures] call [[BIS_fnc_setObjectTexture]] |SYNTAX=
Line 23: Line 20:


| [[Boolean]] - [[true]] when done |RETURNVALUE=
| [[Boolean]] - [[true]] when done |RETURNVALUE=
____________________________________________________________________________________________


|x1= <code><nowiki>[</nowiki>[[player]], "#(rgb,8,8,3)color(0,0,1,1)"] [[call]] [[BIS_fnc_setObjectTexture]];</code> |EXAMPLE1=
|x1= <code><nowiki>[</nowiki>[[player]], "#(rgb,8,8,3)color(0,0,1,1)"] [[call]] [[BIS_fnc_setObjectTexture]];</code> |EXAMPLE1=
Line 40: Line 36:
// [[vehicle]] [[player]] [[setObjectTexture]] [1, "#(rgb,8,8,3)color(0,1,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)"];}}</code> |EXAMPLE2=
// [[vehicle]] [[player]] [[setObjectTexture]] [2, "#(rgb,8,8,3)color(0,0,1,1)"];}}</code> |EXAMPLE2=
____________________________________________________________________________________________


| [[getObjectTextures]], [[setObjectTexture]], [[setObjectTextureGlobal]] |SEEALSO=
| [[getObjectTextures]], [[setObjectTexture]], [[setObjectTextureGlobal]] |SEEALSO=

Revision as of 23:48, 16 January 2021

-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

Notes

Bottom Section