Bad string used in nested instance with model

Posted Oct 06, 2012
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

Quote:
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 problems :confused: and I think that I don't need to change parameters in last instance, so that entity is used only one in panel instance.

Advertisement
Registered users don’t see ads! Register now!
Posted Oct 06, 2012
Replied 5 hours later
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.

Posted Oct 08, 2012
Replied 1 day later
Also, don't nest parms. Ever. They all get put in the top-level instance only.