Anhor Posted May 21, 2017 Report Share Posted May 21, 2017 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 More sharing options...
0 oldmatechoc Posted May 23, 2017 Report Share Posted May 23, 2017 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"; juandayz and Anhor 2 Link to comment Share on other sites More sharing options...
0 Anhor Posted May 23, 2017 Author Report Share Posted May 23, 2017 Awesome! On this place, many thx again to @juandayz, he opens my blind eyes about placing the code in just a wrong line Link to comment Share on other sites More sharing options...
0 azzdayz Posted May 24, 2017 Report Share Posted May 24, 2017 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. juandayz 1 Link to comment Share on other sites More sharing options...
0 juandayz Posted May 24, 2017 Report Share Posted May 24, 2017 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 S4M, Anhor and JohnnyBravo666 3 Link to comment Share on other sites More sharing options...
Question
Anhor
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
29 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now