BIS fnc setObjectTexture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page filling)
m (template:command argument fix)
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


| [object, textures] call [[BIS_fnc_setObjectTexture]] |= Syntax
| [object, textures] call [[BIS_fnc_setObjectTexture]] |SYNTAX=


|p1= object: [[Object]] |= Parameter 1
|p1= object: [[Object]] |PARAMETER1=


|p2= textures: [[String]] or [[Array]] of [[String|Strings]] |= Parameter 2
|p2= textures: [[String]] or [[Array]] of [[String|Strings]] |PARAMETER2=


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


|x1= <code><nowiki>[</nowiki>[[player]], "#(rgb,8,8,3)color(0,0,1,1)"] [[call]] [[BIS_fnc_setObjectTexture]];</code> |= Example 1
|x1= <code><nowiki>[</nowiki>[[player]], "#(rgb,8,8,3)color(0,0,1,1)"] [[call]] [[BIS_fnc_setObjectTexture]];</code> |EXAMPLE1=


|x2= <code>[
|x2= <code>[
Line 37: Line 37:
// [[vehicle]] [[player]] [[setObjectTexture]] [0, "#(rgb,8,8,3)color(1,0,0,1)"];
// [[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]] [1, "#(rgb,8,8,3)color(0,1,0,1)"];
// [[vehicle]] [[player]] [[setObjectTexture]] [2, "#(rgb,8,8,3)color(0,0,1,1)"];}}</code> |= Example 2
// [[vehicle]] [[player]] [[setObjectTexture]] [2, "#(rgb,8,8,3)color(0,0,1,1)"];}}</code> |EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[getObjectTextures]], [[setObjectTexture]], [[setObjectTextureGlobal]] |= See also
| [[getObjectTextures]], [[setObjectTexture]], [[setObjectTextureGlobal]] |SEEALSO=
}}
}}



Revision as of 14:33, 7 April 2019

-wrong parameter ("globargument") defined!-LELocal
Hover & click on the images for description

Description

Description:
Set object textures.
Execution:
call
Groups:
Uncategorised

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