Posts: 1,547
Threads: 122
Joined: Jun 2014
Reputation:
0
This isn't a bug. You're probably using MapAndreas, right? It gets the highest z from ground.
You can use ColAndreas for this.
Posts: 654
Threads: 161
Joined: Dec 2015
Reputation:
0
Yeah, MapAndreas. So, I'll replace MapAndreas to ColAndreas?
Posts: 1,547
Threads: 122
Joined: Jun 2014
Reputation:
0
Yes, and you will also have to use the Raycast function.
Posts: 654
Threads: 161
Joined: Dec 2015
Reputation:
0
Could you...like...help me out, send a small tutorial? Thanks.
Posts: 1,547
Threads: 122
Joined: Jun 2014
Reputation:
0
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
Posts: 654
Threads: 161
Joined: Dec 2015
Reputation:
0
I got it a little, might need more. Dw, I'll do sone research. Thanks!