AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   time made on ent (https://forums.alliedmods.net/showthread.php?t=84350)

whosyourdaddy 01-24-2009 18:08

time made on ent
 
is there a way i can put a time made on an ent, and later on get when that ent was made?

Exolent[jNr] 01-24-2009 18:17

Re: time made on ent
 
Whenever the entity is created,
Code:
set_pev(entity, pev_fuser4, get_gametime());
When you need the value:
Code:
new Float:created; pev(entity, pev_fuser4, created); new Float:alive_time = get_gametime() - created;

whosyourdaddy 01-24-2009 20:30

Re: time made on ent
 
thanks


All times are GMT -4. The time now is 01:44.

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