ok. the TraceLine forward gets called 10 a second if not more. so doing
Code:
register_forward(FM_TraceLine,"TraceLine",1)
public TraceLine(Float:v1[3],Float:v2[3],pentToSkip,Mosnters)
{
//code here
}
will constantly get called
but doing
Code:
public traceline(id)
{
new Float:v1[3]
new Float:v2[3]
new rid,mosnter
eng_func(EngFunc_TraceLine,v1,v2,vid,mosnter);
}
will call TraceLine once and gets all the info once only when you will call on public traceline(id). So everytime u need to get stuff from traceline ud have to call traceline(id);
PS. the code is off top of my head so some stuff/natives might be wrong/misspelled