Jump to content
Sign in to follow this  
FCOPZ-illuminator

Flag change does not work for both sides

Recommended Posts

Hi guys,

i'm still trying to create a CTF map, with only one flag. So far so good. I made some triggers to change the flag, to this side, which is taking the flag. It works very well for US side.

If the "west guy" take the neutral flag, the US flag will be put on the flagpole. But if the "east guy" take the neutral flag, there will no flag put on the flagpole. The "east guy" still running around with the neutral flag on his back. :confused:

It' confusion. I made a very simlple small test map. It's possible that anyone is checking this stuff maybe ? :( Would be really great...

www.fcopz.net/temp/CTF-Test.utes.rar

Kind Regards

illu

Share this post


Link to post
Share on other sites

Ok guys, lools like nobody wants to download the mission.sqm to have an eye on it. So here the code..., from EAST side, which is not working.

I made two triggers for East:

The first one

Condition:

OstHatFahne==1

Activiation:

WestHatFahne=0; Fahne setflagtexture "Ca\Data\flag_rus_co.paa"; Fahne setFlagOwner objNull; Fahne setflagside east;

And the second one

Condition:

not isnull flagowner Fahne and side (flagowner Fahne) == east

Activiation:

OststHatFahne=1; publicVariable "OstHatFahne";

Well, as i told you in the first post. When east guy is taking the flag, the flag wont be changed. The flag is still on the back of the guy. Does see anyone some "bad code" here :confused:

Kind Regards & Greetz

illu

Share this post


Link to post
Share on other sites
...

Activiation:

OststHatFahne=1; publicVariable "OstHatFahne";

...

You've got a typo there: OststHatFahne

And it's not such a good idea to use the same name for a triggername and a variable.

Share this post


Link to post
Share on other sites
You've got a typo there: OststHatFahne

And it's not such a good idea to use the same name for a triggername and a variable.

Yeah, thats it, you made my day !

THX ;)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×