What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Mesh

leonep

New Member
Joined
Jan 7, 2015
Messages
25
Reaction score
0
Please i need to know how to check if a creature is inside mesh,please if possible make an example
 
Hi, you should use IsInsideNavMesh function
Code:
//load mesh first
LoadNavMesh("D:\\Games\\AB\\XXX.ABmesh");
forceNavMeshMovements = true;

//check is my target inside of loaded mesh
Log("My target inside mesh? " + IsInsideNavMesh(me.target.X, me.target.Y, me.target.Z).ToString());
 
thank you very much this is exactly what i am looking for.
Where i can find the others mesh functions? i haven't find on api documentation
thanks
 
i have another question :

what is the best way to navigate in the meshes? now i am using simple point from 1 to X
but if i start in the middle dont works.. if i start pluging in position 3 how i can get my current position ? thanks


z4XROp7.jpg
 
i have another question :

what is the best way to navigate in the meshes? now i am using simple point from 1 to X
but if i start in the middle dont works.. if i start pluging in position 3 how i can get my current position ? thanks


z4XROp7.jpg

Hi, to navigate mesh use MoveTo, ComeTo, to get your current position do: me.x, me.y, me.z and then MoveTo(x,y,z).
 
Back
Top