Bad string used in nested instance with model
Quote from Slivek on October 6, 2012, 4:26 pmHello, I am new in this forum.
I'm using Hammer and I have a question about nested instances.
Why KeyValue "Fix Up Name" in func_instance name not only an entities inside, but also parameters in func_instance_parms? This generate an error in game like thisQuote:Dynamic prop SomeName-PanelName-model_arms: no sequence named:SomeName-ramp_90_deg_open...so model arms used in panels can't work properly. SomeName is not a name of panel instance but name of instance that is using that panel inside. Nested func_instance with panel skips name of panel, but last instance can't skip a name SomeName in parameter used in func_instance_parms.
What I should do to use string "ramp_90_deg_open" instead of "SomeName-ramp_90_deg_open" that is generated automatically? Using func_instance_parms in all nested instances generate some weird problemsand I think that I don't need to change parameters in last instance, so that entity is used only one in panel instance.
Hello, I am new in this forum.
I'm using Hammer and I have a question about nested instances.
Why KeyValue "Fix Up Name" in func_instance name not only an entities inside, but also parameters in func_instance_parms? This generate an error in game like this
...so model arms used in panels can't work properly. SomeName is not a name of panel instance but name of instance that is using that panel inside. Nested func_instance with panel skips name of panel, but last instance can't skip a name SomeName in parameter used in func_instance_parms.
What I should do to use string "ramp_90_deg_open" instead of "SomeName-ramp_90_deg_open" that is generated automatically? Using func_instance_parms in all nested instances generate some weird problems and I think that I don't need to change parameters in last instance, so that entity is used only one in panel instance.

Quote from ChickenMobile on October 6, 2012, 10:05 pmRefer to the name of your prop directly. You could either refer to it as SomeName-PanelName-model_arms or edit the instance and place a @ before your panel name and just reference @model_arms.
e.g. (logic_relay) OnTrigger -> SomeName-PanelName-model_arms -> SetAnimation -> ramp_90_deg_open
e.g. (logic_relay) OnTrigger -> @model_arms -> SetAnimation -> ramp_90_deg_openDo not go through the func_instance_io if you want to set an animation, everything would try to be prefixed.
Refer to the name of your prop directly. You could either refer to it as SomeName-PanelName-model_arms or edit the instance and place a @ before your panel name and just reference @model_arms.
e.g. (logic_relay) OnTrigger -> SomeName-PanelName-model_arms -> SetAnimation -> ramp_90_deg_open
e.g. (logic_relay) OnTrigger -> @model_arms -> SetAnimation -> ramp_90_deg_open
Do not go through the func_instance_io if you want to set an animation, everything would try to be prefixed.
Quote from FelixGriffin on October 8, 2012, 8:22 pmAlso, don't nest parms. Ever. They all get put in the top-level instance only.
Also, don't nest parms. Ever. They all get put in the top-level instance only.