ROTAHOE 3 Posted May 5, 2017 whats wrong with this ? Its not working if (surfaceIsWater getPos player) then {player addAction ["Drop rubber boat", "BoatSpawer.sqf", [], 1, TRUE, TRUE, "", "vehicle _this == _target && _target getVariable ['crrcsdropped', 0] < 2"];}; Share this post Link to post Share on other sites
Grumpy Old Man 3545 Posted May 5, 2017 Dude, get your head around debugging and give out more details on what's "not working". Cheers Share this post Link to post Share on other sites
ROTAHOE 3 Posted May 5, 2017 this works fine player addAction ["Drop rubber boat", "BoatSpawer.sqf", [], 1, TRUE, TRUE, "", "vehicle _this == _target && _target getVariable ['crrcsdropped', 0] < 2"]; But its not picking up I'm in the water to add the action to the player if (surfaceIsWater getPos player) then { }; Share this post Link to post Share on other sites
bloodwyn1756 130 Posted May 5, 2017 https://community.bistudio.com/wiki/surfaceIsWater guess it should work as it is an example... Maybe "Does not work with inland water. Works only with sea water." From the notes is your problem? Test it by going into the water and using your console to check if the statement returns true. 1 Share this post Link to post Share on other sites
ROTAHOE 3 Posted May 5, 2017 Yup its returning true ? Share this post Link to post Share on other sites
mrcurry 496 Posted May 5, 2017 Ditch the if () then {} and add the following to the actions condition string surfaceIsWater getPos _target 2 Share this post Link to post Share on other sites