setObjectMaterial

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 0.50
  Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
0.50

Description

Description:
Sets material of object selection. The selection number is defined through the hiddenselection[]={} array in the vehicle's config (starting with 0).

Syntax

Syntax:
obj setObjectMaterial [selectionNumber, material]
Parameters:
obj: Object
[selectionNumber, material]: Array
selectionNumber: Number
material: String
Return Value:
Nothing

Examples

Example 1:
car setObjectMaterial [0,"A3\Structures_F\Data\Windows\window_set.rvmat"]; car setObjectMaterial [1,"A3\Structures_F\Data\Windows\window_set.rvmat"];

Additional Information

Multiplayer:
-
See also:
getObjectMaterialssetObjectTextureGlobalgetObjectTexturessetObjectTexturesetObjectMaterialGlobal

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section