Raised This Month: $51 Target: $400
 12% 

Entites, flagging


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 09-07-2006 , 12:53   Entites, flagging
Reply With Quote #1

Hey, I'd like to flag some of my entites.
Should I use a unique classname for each one or is there any other way?

Thanks
__________________
Sig(h)!
Obbin is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-07-2006 , 13:15   Re: Entites, flagging
Reply With Quote #2

You should probably just use the classname, since an entities pev field could somehow match another entites pev, example.

Entity 1 uses pev_iuser1 for like ammo or something, lets say their ammo is 1.
Your entity uses pev_iuser1 to "flag" it, so you set it to 1.

O Noes!
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
hmrsmpsn
Senior Member
Join Date: Nov 2005
Location: sWeDeN YEEAAAH!!!
Old 09-07-2006 , 16:01   Re: Entites, flagging
Reply With Quote #3

i use iuser lotz of times and i dont get a single problem :/
__________________



new Float:second = 1.0
new Float:minute = 60*second
new Float:hour = 60*minute
new Float:day = 24*hour
new Float:year = 365*day
set_task(10.0*years,"clean_my_room")
hmrsmpsn is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-07-2006 , 17:18   Re: Entites, flagging
Reply With Quote #4

Please don't respond, because your post shows you have no clue whats going on nor understood my example.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 09-08-2006 , 02:03   Re: Entites, flagging
Reply With Quote #5

Since you are considering changing the classname and say my (your) entities, I'm assuming this is custom, not a default entity. So, go ahead and use iuser1, iuser2, etcetera. In fact, you could probably use almost any entity field to save something, if the entity is in fact a custom one.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Ingram
Veteran Member
Join Date: May 2004
Old 09-08-2006 , 03:23   Re: Entites, flagging
Reply With Quote #6

don't use Edict for flagging

classname is probably best anyway, there a simple search for classnames in engine
Ingram is offline
hmrsmpsn
Senior Member
Join Date: Nov 2005
Location: sWeDeN YEEAAAH!!!
Old 09-08-2006 , 09:42   Re: Entites, flagging
Reply With Quote #7

haha Zenith i know more then you think
i know alot about entities since i actually make maps
__________________



new Float:second = 1.0
new Float:minute = 60*second
new Float:hour = 60*minute
new Float:day = 24*hour
new Float:year = 365*day
set_task(10.0*years,"clean_my_room")
hmrsmpsn is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 09-08-2006 , 12:11   Re: Entites, flagging
Reply With Quote #8

Quote:
Originally Posted by XxAvalanchexX View Post
Since you are considering changing the classname and say my (your) entities, I'm assuming this is custom, not a default entity. So, go ahead and use iuser1, iuser2, etcetera. In fact, you could probably use almost any entity field to save something, if the entity is in fact a custom one.
Yeah, It's custom and don't like to create custom entites with the same function that has different classnames, so I'll use that!
__________________
Sig(h)!
Obbin is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-08-2006 , 12:22   Re: Entites, flagging
Reply With Quote #9

Quote:
Originally Posted by hmrsmpsn View Post
haha Zenith i know more then you think
i know alot about entities since i actually make maps
Clearly.

@Avalanche, its possible that when searching for his flagged entity, another entity could very well have iuser1 set to 1, or something.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
hmrsmpsn
Senior Member
Join Date: Nov 2005
Location: sWeDeN YEEAAAH!!!
Old 09-08-2006 , 15:36   Re: Entites, flagging
Reply With Quote #10

still Zenith has got a point there but if you filter the class name to that wont happen :-)
__________________



new Float:second = 1.0
new Float:minute = 60*second
new Float:hour = 60*minute
new Float:day = 24*hour
new Float:year = 365*day
set_task(10.0*years,"clean_my_room")
hmrsmpsn is offline
Reply



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 12:36.


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