Raised This Month: $ Target: $400
 0% 

TraceLine


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 09-25-2004 , 15:09  
Reply With Quote #10

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
Freecode is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode