Please or Register to create posts and topics.

Trigger_catapult in instance

I've made an instance with a trigger_catapult in it. I thought then the launch target should be a variable, so I set it to "$catapult_target". Then in the func_instance_parms I set the Value to target_destination (as mentioned here: http://developer.valvesoftware.com/wiki ... r_catapult). The first strange thing for me is that the "$catapult_target" in the trigger_catapults properties stays red.

After that I put the func_instance in the actual map, set the replacable value to a real info_target, but it doesn't seem to work. Typing "ent_bbox trigger_catapult" in-game shows the trigger itself, but there is no line leading to the info_target.

What am I doing wrong?

Workshop
First Transcendental Building Course: 02 03 (WIP)
(01 needs some rethinking, playable though)

Post the VMF. I'll take a look at it when I get home.

Here it is.

Workshop
First Transcendental Building Course: 02 03 (WIP)
(01 needs some rethinking, playable though)

I couldn't seem to get it to work but you could set a parm to change the angle and speed.

Try naming your target @<target> and setting the variable to @<target> if you haven't already.

Kasc wrote:
Try naming your target @<target> and setting the variable to @<target> if you haven't already.

Edit disregard this-That kind of defeats the whole purpose of putting this in an instance. By naming it that, you can only have 1 target per map.
I misunderstood what you meant.

I do have it working as you said. I changed the parm in the instance to:
@fling_target > target_destination > target
and in the map named the actual target to "@fling_target3" and set the instance replace to "@fling_target3" and it worked.

Nicely done Kasc.

The @ just means it ignores the fix up.

I had this issue when I tried to close a door outside of an instance from within an instance.

If you have an instance named "closer",

And a door named "close_me",

If you set the $close variable to "close_me", the instance will rename that target to closer-close_me,

where as with @close_me, the instance would still refer to it as @close_me.

+1 internets to you good sir.

Kasc wrote:
If you set the $close variable to "close_me", the instance will rename that target to closer-close_me,

where as with @close_me, the instance would still refer to it as @close_me.

This was the part which I wasn't aware of. Now it works like a dream. :thumbup: Thank you!

Workshop
First Transcendental Building Course: 02 03 (WIP)
(01 needs some rethinking, playable though)