24.12.2017, 08:42
I haven't really worked with AI NPC's a lot either.
This is from ToiletDuck:
Use RayCastLine x y z , targetx, tagerty,targetz when it returns to true then it means there is a wall between of it or there is IsPlayerBlock function use that.
x y z > GetPlayerPos(playerid) then Targetx,y,z = GetPlayerPos(targetid)
I hope you understand. or use 3dtryg of abyss use IsElementBetweenwall I forgot what is that function again lol
This is from ToiletDuck:
Use RayCastLine x y z , targetx, tagerty,targetz when it returns to true then it means there is a wall between of it or there is IsPlayerBlock function use that.
x y z > GetPlayerPos(playerid) then Targetx,y,z = GetPlayerPos(targetid)
I hope you understand. or use 3dtryg of abyss use IsElementBetweenwall I forgot what is that function again lol