Raised This Month: $ Target: $400
 0% 

armoury_entity and weaponbox


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 06-28-2007 , 15:00   armoury_entity and weaponbox
Reply With Quote #1

Does anybody know if it's possible to get the corresponding weaponbox of a armoury_entity?I'm trying to find out when a armoury_entity has desapeared(no more weapons)

Thx
danielkza is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 06-28-2007 , 15:09   Re: armoury_entity and weaponbox
Reply With Quote #2

armoury_entity doesn't linked to a weaponbox entity. To check if armoury_entity is disappeared you can do a check:
Code:
if (pev(armoury_entity_index_here, pev_effects) & EF_NODRAW)

Last edited by VEN; 06-28-2007 at 15:12.
VEN is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 06-28-2007 , 16:34   Re: armoury_entity and weaponbox
Reply With Quote #3

Quote:
Originally Posted by VEN View Post
armoury_entity doesn't linked to a weaponbox entity. To check if armoury_entity is disappeared you can do a check: Code:
if (pev(armoury_entity_index_here, pev_effects) & EF_NODRAW)
this was exacltly what i was looking for,works perfectly
+karm
danielkza 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 21:29.


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