SCRIPT: Deliver obj only when something is constructed...


(eRRoLfLyNN) #1

Hi, at work here so I can’t get the stuff I want, so hoping somebody has an idea.

Basically, at the minute I have a trigger zone where I bring my objective and bla bla the game is won. But I’m wondering how the objective can be set down ONLY when something has been constructed in the “home” trigger zone. I am looking for something like the Gas-Tank Dropoff area on Drakir’s Fliegerhorst, or the transmitter in 1944_Beach. I know Drakir’s source is available for d/load but I am work, and the MAN would frown upon me d/loading such a thing. :bored:

How is this done - is it making the home trigger brush invisible/visible or something like that?

Or maybe the script needs to keep checking if the constructible is visible?

:???:


(FireFly) #2

I’ve done something similar in my map "v1rocket’’ where the allies can pick up the objective at any given time, but can only secure it at the ‘dropzone’ after they have escorted a tank to a specific place in the map.

This should also work in your case and the constructable doesn’t necessary has to be in the ‘dropzone’ for that matter.

Give your trigger_flagonly_multiple entity the same script/target name for example “dropzone”

and add these lines in the script containing the constructable part:

built final
{
setstate dropzone default

}

don’t forget to add this line in the game_manager part of the script so the dropzone starts out as invisible

setstate dropzone invisible 

(eRRoLfLyNN) #3

Cheers Firefly - is the state “default” just visible? Just so I know…


(LaggingTom) #4

Default is visible and tangible, invisible is not so


(eRRoLfLyNN) #5

cheers :slight_smile:


(FireFly) #6

Just out of curiousity; did you manage to make it work ?


(eRRoLfLyNN) #7

I will be trying it tonight - got nothing done over the weekend :frowning:


(eRRoLfLyNN) #8

Yes that worked fine Firefly, thanks a lot :drink: