Hey guys,
I am currently writing a script that makes it possible to put players on a stretcher for medical stuff. The problem now is, that we want to make it possible that the medical stuff can lift a stretcher (called _nextlitter) while a person is attached to it.
Here my code upto now (initplayerlocal.sqf):
[] spawn{
waitUntil {
inputAction "HeliRopeAction" >0;
};
_nextlitter = nearestObjects [(getPos player), ["Land_Stretcher_01_F"], 100] select 0;
rope1 = ropeCreate [(vehicle player), [0,1.5,0.2], _nextlitter, [0.4,1.2,0.16], 8];
rope2 = ropeCreate [(vehicle player), [0,1.5,0.2], _nextlitter, [0.4,-1.2,0.16], 8];
rope3 = ropeCreate [(vehicle player), [0,1.5,0.2], _nextlitter, [-0.4,-1.2,0.16], 8];
rope4 = ropeCreate [(vehicle player), [0,1.5,0.2], _nextlitter, [-0.4,1.2,0.16], 8];
};
If i execute this now, the player stays hovering in the air and the stretcher gets lifted by the helicopter...
Does somebody have a solution for this problem? I would very appreciate it.
Stay awesome,
BadKey