get func_door entity id handled by func_button
The topic name say it all, i need that to open the cells in jailbreak maps, i know not all maps handle doors this way, but most of them do, i tried to get the target of the button using a integer, but its not a valid entity, i got a code but im not sure why fakemeta throws this error: Invalid return type when using strings.
here's the code to open the cells, mappers usually set the same targetname to all the doors of the main button to open them. PHP Code:
|
Re: get func_door entity id handled by func_button
pev(targetent, pev_classname, charsmax(classname))
-> pev(targetent, pev_classname, classname, charsmax(classname)) |
Re: get func_door entity id handled by func_button
Thanks so much, its working now, btw you know which entities have the pev_target field assigned? just to handle much more maps :P
EDIT: Here is a list of entities that have a target keyvalue to open doors (maybe i missed some) Quote:
|
| All times are GMT -4. The time now is 20:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.