BIS fnc setObjectTexture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
m (Some wiki formatting)
 
(5 intermediate revisions by the same user not shown)
Line 12: Line 12:
|descr= Set object textures.
|descr= Set object textures.


|s1=[object, textures] call [[BIS_fnc_setObjectTexture]]
|s1= [object, textures] call [[BIS_fnc_setObjectTexture]]


|p1= object: [[Object]]
|p1= object: [[Object]]


|p2= textures: [[String]] or [[Array]] of [[String|Strings]]
|p2= textures: [[String]] or [[Array]] of [[String]]s


|r1= [[Boolean]] - [[true]] when done
|r1= [[Boolean]] - [[true]] when done


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


|x2= <code>[
|x2= <sqf>
[
vehicle player,
vehicle player,
[
[
Line 30: Line 31:
]
]
] call BIS_fnc_setObjectTexture;
] call BIS_fnc_setObjectTexture;
 
</sqf>
{{codecomment|// identical to:
identical to:
// vehicle player setObjectTexture [0, "#(rgb,8,8,3)color(1,0,0,1)"];
<sqf>
// vehicle player setObjectTexture [1, "#(rgb,8,8,3)color(0,1,0,1)"];
vehicle player setObjectTexture [0, "#(rgb,8,8,3)color(1,0,0,1)"];
// vehicle [[player]] [[setObjectTexture]] [2, "#(rgb,8,8,3)color(0,0,1,1)"];}}</code>
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)"];
</sqf>


|seealso= [[getObjectTextures]] [[setObjectTexture]] [[setObjectTextureGlobal]]
|seealso= [[getObjectTextures]] [[setObjectTexture]] [[setObjectTextureGlobal]]
}}
}}

Latest revision as of 11:47, 13 July 2022

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:
getObjectTextures setObjectTexture setObjectTextureGlobal

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