removing entity members
I wonder if there's a way to remove an entity member
i.e. removing the "target" entry of a func_button (not the same as setting target to a string like ""). thanks. |
You mean classname:
"info_target" to "info_" ? I don't get it. |
Code:
|
I mean a property of a entity.
Let's take this example of a func_breakable. These are some values of an entity recorded into the bsp file: Code:
{entity_get_string, entity_set_int, etc... But I wonder if remove a property like "target", instead of setting it to an empty string... |
I don't think you can, Pawn has no NULL. When would you need to completely null it instead of having it as an empty string?
|
doors for instance...
if a door has got any targetname reference, like targetname=""; this will cause it to be opened only with a external link, like buttons, etc. I'll try to copy the entire entity members collection, remove the entity and then respawn it only with the desired properties. |
but I can't find some indexes correspondence in Engine constants.
i.e., what's is the key for "delay" property? there's nothing like ENV_FL_delay... Is there any reference somewhere in SDK? |
I'm sorry. Maybe I'm getting a little non-sense.
I'm too newbie... The question is simpler: How can I read the "delay" or "wait" property of a func_door? |
You'd have to do something like this...
Code:
This hooks keyvalues being set and then will store "wait" and "delay" in seperate containers within a func_door. Use EV_FL_fuser1 and EV_FL_fuser2 to retrieve them. |
Thank you. I'll try it.
How do these forwards work? I mean, when are these values being set? Is there any reference to it? |
| All times are GMT -4. The time now is 23:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.