Raised This Month: $ Target: $400
 0% 

What's the best way to detect entity type?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 12-20-2006 , 10:01   What's the best way to detect entity type?
Reply With Quote #1

Also I mean what's the fasterst way?

Most entities are detected by model name. But this is ineffective and not stable cause you can easily change entity model. Well, for beginning assume that i use standard models. Can i use modelindex for that? Or should i cache modelindex while getting a modelname because modelindex can be changed from map to map? May be there is a simple way to detect type via PrivateData (as VEN did with grenade types)?
Simon Logic is offline
Send a message via Skype™ to Simon Logic
 


Thread Tools
Display Modes

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 22:29.


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