JShaw119
New Member
i just want to know if there is a dancing script for server side i want to know what the code is to get my character to do a dance on my server?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ActsPercMstpSnonWnonDnon_DancingDuoIvan
ActsPercMstpSnonWnonDnon_DancingDuoStefan
ActsPercMstpSnonWnonDnon_DancingStefan
player playMove "ActsPercMstpSnonWnonDnon_DancingStefan"
//DANCE
if (inflamed cursorTarget and _canDo) then {
if (s_player_dance < 0) then {
s_player_dance = player addAction ["Dance!","dance\dance.sqf",cursorTarget, 0, false, true, "",""];
};
} else {
player removeAction s_player_dance;
s_player_dance = -1;
};
player removeAction s_player_dance;
s_player_dance = -1;
private["_ent"];
_ent = _this select 3;
player removeAction s_player_dance;
s_player_dance = -1;
player playMove "ActsPercMstpSnonWnonDnon_DancingStefan";
cutText ["Let the party begin!","PLAIN DOWN"];
r_interrupt = false;
_animState = animationState player;
r_doLoop = true;
_started = false;
_finished = false;
while {r_doLoop} do {
_animState = animationState player;
_isDancing = ["ActsPercMstpSnonWnonDnon_DancingStefan",_animState] call fnc_inString;
if (_isDancing) then {
_started = true;
};
if (_started and !_isDancing) then {
r_doLoop = false;
_finished = true;
};
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
};
r_doLoop = false;
if (_finished) then {
cutText ["Awesome performance mate!","PLAIN DOWN"];
} else {
r_interrupt = false;
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
cutText ["Dance Canceled! ;(","PLAIN DOWN"];
};
it works for me but very slowworks for me:
I downloaded some DayZ hacks because there where some scripts I wanted to incorporate into admin tools.
If you would like I can post a dropbox link to them, they are just a collection of sqf files in a zip. No .exe.