AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Get value from keyname of entity (https://forums.alliedmods.net/showthread.php?t=334460)

LiZou Mapper 09-25-2021 17:54

Get value from keyname of entity
 
I created "info_target" using J.A.C.K (Hammer), I add something different keyvalues in entity.

Screenshots:
https://i.ibb.co/pbwZvQ5/jack.jpg

Is there any way to get key values:

Code:

"contact"
"wait"

Like this:
PHP Code:

new Float:iWaitTime get_keyvalue_float(iEnt"wait")

new 
szContact[64]
get_keyvalue_string(iEnt"contact"szContactcharsmax(szContact)) 


fysiks 09-25-2021 18:06

Re: Get value from keyname of entity
 
This plugin written by a friend of mine gets certain key values from certain entities so that it can change them later. It uses the key value forward and basically processes all the key values at the start, saves the entities and then it references them later.

Maybe you can do something similar to get the value that you're looking for.

LiZou Mapper 09-27-2021 13:02

Re: Get value from keyname of entity
 
Quote:

Originally Posted by fysiks (Post 2758871)
This plugin written by a friend of mine gets certain key values from certain entities so that it can change them later. It uses the key value forward and basically processes all the key values at the start, saves the entities and then it references them later.

Maybe you can do something similar to get the value that you're looking for.

Thanks :3


All times are GMT -4. The time now is 11:37.

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