Author: DarkXess
Author Website:

Requirements: No addons required

Version: 1.0

Short description: Here is a script allowing you to change clothes, from sniper to rifleman vice versa.

Date: 2011-03-30 16:34


Comments: (5)
Rating:



 





Changeable Clothes

by
WoodyUK


Description:
Here is a script allowing you to change clothes, from sniper to rifleman vice versa.
You can change it to any other unit you wish, so "woodland sniper" to "desert sniper" etc ..


Usage:
Init.sqf :
private ["_uniform"];
_uniform = rf addAction ["Change Uniform", "UniSwitch.sqf"];
_uniform = sni addAction ["Change Uniform", "UniSwitch.sqf"]; 

enableTeamSwitch false;

UniSwitch.sqf :
private ["_snipos","_rfmpos","_dir","_group"];
_snipos = getPos sni;
_rfmpos = getPos rf;
_dir = getDir player;
_group = group player;

titleText ["Changing Clothes", "BLACK OUT", 2];
sleep 2;
sni setPos _rfmpos;
rf setPos _snipos;

if (player == rf) then 
{
     [rf] join grpNull;
     selectPlayer sni;
     [sni] joinSilent _group;
} else
{
     [sni] join grpNull;
     selectPlayer rf;
     [rf] joinSilent _group;
};
sleep 1;
titleText ["Changing Clothes", "BLACK IN", 2];
player setDir _dir;
exit;


Credits:
Credits go to WoodyUK on the BIS forums for the script, and DarkXess for converting it into a demo mission.


Forum topic:
- Armaholic forums




Enable javascript to be able to download from Armaholic please!



Tags: No tags