AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Keys of Entities (https://forums.alliedmods.net/showthread.php?t=113512)

KadiR 12-27-2009 15:40

Keys of Entities
 
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.

xPaw 12-27-2009 15:42

Re: Keys of Entities
 
its "health"

KadiR 12-27-2009 15:53

Re: Keys of Entities
 
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..:|

hleV 12-27-2009 15:55

Re: Keys of Entities
 
PHP Code:

entity_set_float(find_ent_by_model(-1"func_breakable""*83"), EV_FL_health150.0); 


xPaw 12-27-2009 16:02

Re: Keys of Entities
 
@hleV: it will be resetted at next respawn (after dying)

Add DispatchSpawn( ent );

joropito 12-28-2009 08:58

Re: Keys of Entities
 
Quote:

Originally Posted by KadiR (Post 1033068)
Where can I see the keys of the entities?

Take a look on this

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

KadiR 12-28-2009 12:07

Re: Keys of Entities
 
Quote:

Originally Posted by xPaw (Post 1033090)
@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 :wink:
Just continue it :mrgreen:

xPaw 12-28-2009 12:39

Re: Keys of Entities
 
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 23:34 dot help kadir!!!!จจ , bei the wei, U gay!
Keys of Entities 28th Dec 2009 23:33 dot help kadi


All times are GMT -4. The time now is 04:08.

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