Modme Forums

Spawn model with the angles of the NavMesh

Game Modding | Call of Duty: Black Ops 3 | Scripting


eDeK:

Im trying to spawn a model in a point but with the "angles" of the NavMesh.

Probably i need use this...

CheckNavMeshDirection

or...

GetNavMeshFaceNormal

Maybe something like this, idk.

pos = CheckNavMeshDirection( self.origin, AnglesToForward( self.angles ), 90, 20 );

t_model = util::spawn_model( "my_model", self.origin );    
     
t_model.angles = pos.angles;