DrSova 46 Posted June 1, 2016 Hi. My next problem - i can't check distance between ship and different object under water (in example - container). My task is remove the object, when it's at a certain distance from the ship. Object attached to ship using rope. First of all, I'm tried to use RopeLength sscripting command - it worked very bad, showed incorrect values of rope length. Secondly, I'm tried to use distance command to check distance between ship and container. It showed static distance (1.04e+...). Thirdly, i'm tried to check position of container with getpos, getposASL. It showed [0,0,0] coordinates. Question: how to fix/solve this problem? http://cs636626.vk.me/v636626943/be9e/CQMW26XsUoI.jpg (sketch) Share this post Link to post Share on other sites
sarogahtyp 1109 Posted June 1, 2016 Show ur script! Share this post Link to post Share on other sites
DrSova 46 Posted June 1, 2016 Show ur script! TurnUp = { _Rope = (_this select 3) select 0; //Rope _c = (_this select 3) select 1; //rope length _vehplayer = (_this select 3) select 3; //ship _fuel = (_this select 3) select 4; //fuel in ship _targetcrate = (_this select 3) select 5; //container ropeUnwind [_Rope, 5, _c]; _length = ropeLength _Rope; while {_length > 2} do {_length = ropeLength _Rope; diag_log(_length)}; ropeDestroy _Rope; deletevehicle _veh; deletevehicle _targetcrate; _vehplayer setFuel _fuel; _vehplayer setvariable ["Roping", false, true]; }; Share this post Link to post Share on other sites
sarogahtyp 1109 Posted June 1, 2016 Problem in getting position under water help me pls because I cant see any position related thing in ur script. Share this post Link to post Share on other sites