Jump to content
Sign in to follow this  
callihn

rsetobjecttexture example?

Recommended Posts

SOLVED! Thanks for coming!

Can someone show me how this command works?

I tried:

[nil,_car,"per",rsetobjecttexture,[4,"\image\light.paa"]]

[nil,_car,"per",rsetobjecttexture[4,"\image\light.paa"]]

[nil,_car,"per",rsetobjecttexture[4,"\image\light.paa"]

[nil,_car,"per",rsetobjecttexture,4,"\image\light.paa"]

EDIT: This seems to work:

[nil,_car,"per",rsetobjecttexture,_car,4,"\image\light.paa"]

Thanks

This is the script that runs the command:

 
scriptName "MP\data\scriptCommands\setObjectTexture.sqf";
_caller = _this select 0;
_target = _this select 1;
_tObject = _this select 2;
_tIndex = _this select 3;
_texture = _this select 4;
//textLogFormat ["MPF_ %1 setDir %2", _target, _dir];
_tObject setObjectTexture [_tIndex, _texture];

Edited by callihn

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×