Jump to content
  • 0

No one left back!


Anhor

Question

As everybody knows, theres a function to drag a wounded unconsius player out of the danger zone.

My question is now, and I´m sure it´s stupid, is there a chance to do that with a fallen comrad too?

 

Link to comment
Share on other sites

Recommended Posts

  • 0
8 hours ago, DAmNRelentless said:

@oldmatechoc

Lol, this animation though! I love it because it looks so damn awkward :D

hahaha bit awkward looking.
it looks okay when the dead body does the correct animation.

Like this :D

 

To give the corpes that animation just use

		_dragee switchMove "AinjPfalMstpSnonWrflDnon_carried_Up";

 

Link to comment
Share on other sites

  • 0
23 hours ago, juandayz said:

mmm you can try if this


_bbody = _this select 3;
_player = player;
_drag = _bbody getVariable["drag",false];
if(!_drag) then {
draggin = true;
_bbody attachTo [player, [0, 0, 0]];
_bbody setVariable["drag",true,true];
_location = [_bbody] call FNC_GetPos;
_distance = 20;

while {draggin} do {
_player playActionNow "grabDrag";

};

};

also check the oldmatechos way. few posts above

Here is what I ended up doing I kind of used both concepts. Now I can go into the drag position and drag a body at a slow backwards pace for as far as I would like. Then just drop wherever.

Spoiler

_bbody = _this select 3;
_player = player;
_drag = _bbody getVariable["drag",false];
if(!_drag) then {
_bbody attachTo [player, [0, 0, 0]];
_bbody setVariable["drag",true,true];
_player playActionNow "grabDrag";    
systemChat("You are draging a Corpse");
};

Spoiler

_bbody = _this select 3;
_player = player;
_drag = _bbody getVariable["drag",true];
if(_drag) then {

detach _bbody;
_player switchMove "";
systemChat("You have let go of the Corpse");
_bbody setVariable["drag",false,false];

};

Thanks for everyones help with this. I like trying to add tweeks and adding tweeks is helping me learn more about scripting.

Link to comment
Share on other sites

  • 0
1 hour ago, azzdayz said:

Here is what I ended up doing I kind of used both concepts. Now I can go into the drag position and drag a body at a slow backwards pace for as far as I would like. Then just drop wherever.

  Reveal hidden contents

_bbody = _this select 3;
_player = player;
_drag = _bbody getVariable["drag",false];
if(!_drag) then {
_bbody attachTo [player, [0, 0, 0]];
_bbody setVariable["drag",true,true];
_player playActionNow "grabDrag";    
systemChat("You are draging a Corpse");
};

  Reveal hidden contents

_bbody = _this select 3;
_player = player;
_drag = _bbody getVariable["drag",true];
if(_drag) then {

detach _bbody;
_player switchMove "";
systemChat("You have let go of the Corpse");
_bbody setVariable["drag",false,false];

};

Thanks for everyones help with this. I like trying to add tweeks and adding tweeks is helping me learn more about scripting.

Do not worry mate i just start to writing it as separate mod,With a merge of my way and oldmatecho.. i have 90% writed.  And gonna add some plus. So maybe tomorrow gonna finish it. Tnks for share youre code also gonna take something from yours

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...