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
__________________