How to get the ID or class

Shnurok

New Member
Sorry for my English! :(

How to get the vehicle ID or vehicle Class?
I need to apply:
Code:
setObjectTexture [0, "#(rgb,8,8,3)color(0.1,0.2,0.3,1)"];
to the vehicle with the class "Mi17_rockets_RU" and ID "123"

Thanks in advance!
 
I made so:
At the bottom of the file "dayz_server.pbo\compile\server_objectUpdate.sqf" added:
Code:
if (_object isKindOf "Mi17_rockets_RU") then {
    _object setVehicleInit "this setObjectTexture [0, ""#(rgb,8,8,3)color(0.1,0.2,0.3,1)""];";
    processInitCommands;
};
It does not work. Help please!
 
Code:
_Mi17    = typeOf _object == "Mi17_rockets_RU";
 
if (_Mi17) then {
    _object setObjectTexture [0, "#(rgb,8,8,3)color(0.1,0.2,0.3,1)"];
};

is also not working!:(
 
set object texture is a client side function. If the client wasn't in the game for the object to have that command thrown on it, they will not see the change.
 
Wow! Thank you, it really explains a lot!
In such a case, is it possible to make a trigger that so would be activated when entering the server?
 
Back
Top