AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Make my entites unique (https://forums.alliedmods.net/showthread.php?t=25166)

Obbin 03-09-2006 02:16

Make my entites unique
 
How should i do to make entites (That i created) unique, but sill having the same classname.
Like if i have 5 entites width classname "MyEnt" and i want every ent to be recognizable as that entity.

Hope you understood and thx! :P

VEN 03-09-2006 02:57

You can use for example EV_INT_iuser1, EV_INT_iuser2, EV_INT_iuser3, EV_INT_iuser4 and store unique number.

Obbin 03-09-2006 09:38

Uh, how? :oops:
Example?

Charr 03-09-2006 13:44

Code:
entity_set_int(entity,EV_INT_iuser1,X)
X being your unique number


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

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