2021-05-26, 03:28 PM
(2021-05-25, 11:18 PM)Radical Wrote: Item::IsPointInWaterOrient function is not woking for me.
If water in 3 m of player front it's not detecting.
I use colandreas and it loaded 100%,?I don't know what's wrong.
Code:if(!PlayerFishing[playerid]) {
? ? if(!Item::IsPointInWaterOrient(playerid,item_player,3.0,o_front)) return 0;
? ? PlayerFishing[playerid] = 1;
? ? GameTextForPlayer(playerid, "~w~Fishing...", 5000, 4);
}
Funcion work, howerer 3.0 radius is to small for fishing as you can see on video:
https://www.youtube.com/watch?v=Y-CdLwk8eOw