setObjectTexture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETOBJECTTEXTURE]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SETOBJECTTEXTURE]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SETOBJECTTEXTURE]]


| ofpr |= Game name


<h2 style="color:#000066">'''''object'' setObjectTexture ''texture'''''</h2>
|1.75|= Game version
____________________________________________________________________________________________


| Textures object selection with texture named in array. Array has the form [selection number,"Texture"]. The selection number is defined through the [[hiddenselection]][]={} array in the vehicle's config (starting with 0). |= Description
____________________________________________________________________________________________


'''Operand types:'''
| object '''setObjectTexture''' texture |= Syntax


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


'''texture:''' [[Array]]
|p2= texture: [[Array]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_objectname setobjecttexture [0,"\pboname\texture.paa"]
_objectname setobjecttexture [1,"\pboname\texture2.paa"]
Notes: In MP this command has only local effect. If you want to change a texture on all clients, you have to execute this command on each client. This command has also a bug: when a saved game is loaded the texture you have set will disappear and needs to be reset.</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Added in version '''1.75'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Textures '''object''' selection with '''texture''' named in array.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETOBJECTTEXTURE]]
Array has the form '''''[selection number,"Texture"]'''''.
[[Category:Scripting Commands OFP 1.96|SETOBJECTTEXTURE]]
 
[[Category:Scripting Commands ArmA|SETOBJECTTEXTURE]]
The '''selection number''' is defined through the [[CfgVehicles Config Reference|hiddenselection]][]={} array in the vehicle's config (starting with 0).
 
 
'''Example:'''
 
_objectname '''setobjecttexture''' [0,"\pboname\texture.paa"]<br>
_objectname '''setobjecttexture''' [1,"\pboname\texture2.paa"]
 
 
'''Notes:'''
 
In MP this command has only local effect.
If you want to change a texture on all clients, you have to execute this command on each client.
 
This command has also a bug: when a saved game is loaded the texture you have set will disappear and needs to be reset.

Revision as of 00:24, 2 August 2006

Hover & click on the images for description

Description

Description:
object setObjectTexture texture
Groups:
Uncategorised

Syntax

Syntax:
Nothing
Parameters:
object: Object
texture: Array
Return Value:
Return value needed

Examples

Example 1:
_objectname setobjecttexture [0,"\pboname\texture.paa"]
_objectname setobjecttexture [1,"\pboname\texture2.paa"] 
Notes: In MP this command has only local effect. If you want to change a texture on all clients, you have to execute this command on each client. This command has also a bug: when a saved game is loaded the texture you have set will disappear and needs to be reset.

Additional Information

See also:
See also needed

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