Trigger_catapult in instance
Quote from Brits on June 19, 2011, 12:49 pmI'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?
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?
Quote from Marlovious on June 21, 2011, 11:59 amPost the VMF. I'll take a look at it when I get home.
Post the VMF. I'll take a look at it when I get home.
Quote from Marlovious on June 22, 2011, 9:23 pmI couldn't seem to get it to work but you could set a parm to change the angle and speed.
I couldn't seem to get it to work but you could set a parm to change the angle and speed.
Quote from Kasc on June 22, 2011, 9:29 pmTry naming your target @<target> and setting the variable to @<target> if you haven't already.
Try naming your target @<target> and setting the variable to @<target> if you haven't already.
Quote from Marlovious on June 22, 2011, 9:41 pmKasc 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.
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.
Quote from Kasc on June 22, 2011, 9:59 pmThe @ 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.
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.
Quote from Marlovious on June 22, 2011, 10:02 pm+1 internets to you good sir.
+1 internets to you good sir.
Quote from Brits on June 23, 2011, 5:46 amKasc 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.
Thank you!
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.
Thank you!
