AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to identify an entity owner (https://forums.alliedmods.net/showthread.php?t=57783)

v_rtex 07-11-2007 09:05

How to identify an entity owner
 
for example
edict_t *m_pEnt = engine->PEntityOfEntIndex(33);

How to identify an entity (m_pEnt) owner (player whose entity such as npc_grenade_frag or npc_tripmine; weapon_physcannon what picked up entity)?

stupok 07-11-2007 16:27

Re: How to identify an entity owner
 
I suppose you can use Fakemeta:

Code:

new ownerid = pev(entid, pev_owner)


All times are GMT -4. The time now is 21:34.

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