View Single Post
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-15-2014 , 16:47   Re: A* Pathfinding API
Reply With Quote #26

Hey buddy, you forgot something in your example
Code:
SavePos(id, pos) {     new Float:Origin[3];     new Float:End[3];     new hTrace;     pev(id, pev_origin, Origin);         xs_vec_copy(Origin, End);     End[2] -= 1000
    hTrace = create_tr2()
    engfunc(EngFunc_TraceLine, Origin, End, IGNORE_MONSTERS, id, hTrace);     get_tr2(hTrace, TR_vecEndPos, Origin);     free_tr2(hTrace);         Origin[2] += 10;     xs_vec_copy(Origin, gPos[pos]); }

Btw, this plugin seems to be wonderful. I think someone must do a NPC moving example, you'll be the fucking boss
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline