Raised This Month: $ Target: $400
 0% 

Keys of Entities


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 12-27-2009 , 15:40   Keys of Entities
Reply With Quote #1

Where can I see the keys of the entities?

I wanted to use this function here:

http://www.amxmodx.org/doc/index.htm...chkeyvalue.htm

I had a look into engine_stocks.inc and found just this keys:

- DispatchKeyValue(entity,"dmg",szDamage);
- DispatchKeyValue(entity,"damagetype",szDamage );
- DispatchKeyValue(entity,"origin","8192 8192 8192");

I need the key for the health of the breakable entities. I tried it with health, but it didn't work.
KadiR is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-27-2009 , 15:42   Re: Keys of Entities
Reply With Quote #2

its "health"
__________________
xPaw is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 12-27-2009 , 15:53   Re: Keys of Entities
Reply With Quote #3

I've got it already at health:

PHP Code:
    DispatchKeyValuefind_ent_by_model( -1"func_breakable""*83" ), "health""150" ); 
The breakable health is setted at 500, and I wanted to set it at 150, and this code doesn't work for me..
KadiR is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-27-2009 , 15:55   Re: Keys of Entities
Reply With Quote #4

PHP Code:
entity_set_float(find_ent_by_model(-1"func_breakable""*83"), EV_FL_health150.0); 
__________________
hleV is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-27-2009 , 16:02   Re: Keys of Entities
Reply With Quote #5

@hleV: it will be resetted at next respawn (after dying)

Add DispatchSpawn( ent );
__________________
xPaw is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 12-28-2009 , 08:58   Re: Keys of Entities
Reply With Quote #6

Quote:
Originally Posted by KadiR View Post
Where can I see the keys of the entities?
Take a look on this

http://www.twhl.co.za/wiki.php?id=164
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 12-28-2009 , 12:07   Re: Keys of Entities
Reply With Quote #7

Quote:
Originally Posted by xPaw View Post
@hleV: it will be resetted at next respawn (after dying)

Add DispatchSpawn( ent );
Describe it better, do you mean this?

PHP Code:
DispatchKeyValue(ent,"health","150"
Won't all breakables get the health 150 then?

And thanks for those fuckers, who leave -k without or stupid messages
Just continue it
KadiR is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-28-2009 , 12:39   Re: Keys of Entities
Reply With Quote #8

Code:
new iEntity = find_ent_by_model( -1, "func_breakable", "*83" ); DispatchKeyValue( iEntity, "health", "150" ); DispatchSpawn( iEntity );

What a random karmas i got
Keys of Entities 28th Dec 2009 234 dot help kadir!!!!¨¨ , bei the wei, U gay!
Keys of Entities 28th Dec 2009 233 dot help kadi
__________________

Last edited by xPaw; 12-28-2009 at 17:21.
xPaw 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 04:08.


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