Multiple return points for a returnable objective


(Ifurita) #1

I know I’ve seen this post before, but can’t find it.

I’m starting off with 2 objectives in an ammo bunker. I want the attacking team to be able to take either objective to either the North or South rocket. Once the objective is successfully taken to a rocket, it becomes a destructible objective.

How would I do this?

I have all of the prefabs for the typical returnable objective and I can associate a single trigger_flagonly_multiple with multiple ctf_team_flags, but can I do the reverse and associate a single CTF_team_flag with more than one trigger_flagonly_multiple?

Thanks.


(Lanz) #2

I can’t see anything that would stop you from having multiple trigger_flagonly_multiple’s in a map. Just duplicate all scripts/triggers etc from one rocket to the other.


(Ifurita) #3

I have to admit that I’ve simply forgetten a lot of my ill-gained mapping knowledge. I guess that would work, to give each one a different name but execute the same script and use a bitset to properly setstate the TFM and Func_destructible at the proper rocket


(sock) #4

You could also use global variables to keep track of events across several script routines. Or use the traditional method of calling certain functions within a controlling routine stored somewhere in your main script file to keep track of certain states.

Sock
:moo:


(Ifurita) #5

Thanks. Still scoping out how I want to do this, but that’s a good idea I had forgotten about.