BIS fnc setObjectTexture: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(21 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.00 | |||
|1.00 | |||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
Line 9: | Line 8: | ||
|arg= global | |arg= global | ||
|eff= local | |eff= local | ||
|s1=[object, textures] call [[BIS_fnc_setObjectTexture]] | |descr= Set object textures. | ||
|s1= [object, textures] call [[BIS_fnc_setObjectTexture]] | |||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
|p2= textures: [[String]] or [[Array]] of [[String | |p2= textures: [[String]] or [[Array]] of [[String]]s | ||
|r1=[[Boolean]] - [[true]] when done | |r1= [[Boolean]] - [[true]] when done | ||
|x1= < | |x1= <sqf>[player, "#(rgb,8,8,3)color(0,0,1,1)"] call BIS_fnc_setObjectTexture;</sqf> | ||
|x2= < | |x2= <sqf> | ||
[ | |||
vehicle player, | |||
[ | [ | ||
"#(rgb,8,8,3)color(1,0,0,1)", | "#(rgb,8,8,3)color(1,0,0,1)", | ||
Line 28: | Line 30: | ||
"#(rgb,8,8,3)color(0,0,1,1)" | "#(rgb,8,8,3)color(0,0,1,1)" | ||
] | ] | ||
] | ] call BIS_fnc_setObjectTexture; | ||
</sqf> | |||
identical to: | |||
<sqf> | |||
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)"]; | |||
</sqf> | |||
|seealso= [[getObjectTextures]] | |seealso= [[getObjectTextures]] [[setObjectTexture]] [[setObjectTextureGlobal]] | ||
}} | }} |
Latest revision as of 11:47, 13 July 2022
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:
- Example 2:
- 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
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