Jump to content
Sign in to follow this  
Dave -OFPL-

Anti flag zone - flag marker

Recommended Posts

Hey, I want to make it so West cannot take East Flag into their respawn and if they do they get killed and the flag returns to the pole.

Also say West take East flag but dont cap it - Can I create a map marker that comes up. Say after 5 minutes of taking East flag the West player with the flag is shown on the map as a cross or something.

Thanks

Share this post


Link to post
Share on other sites

Well I should think about it before I post! I sorted the first question:

I made a trigger with activation

(flagowner vlajkaUSA == ownerU)

And set the damage when the trigger is activated.

With regards to the second question:

I made a trigger with activation

(flagowner vlajkaUSA == ownerU)

And after a delay of 5 minutes it executes a script which I found:

#loop

?(flagowner vlajkaUSA == ownerU) : "us_flag_1" SetMarkerPos (GetPos ownerU)

?(flagowner vlajkaRUS == ownerR) : "rus_flag_1" SetMarkerPos (GetPos ownerR)

?(flagowner vlajkaUSA == ownerU) : "us_flag" SetMarkerColor "ColorRed"

?(flagowner vlajkaRUS == ownerR) : "rus_flag" SetMarkerColor "ColorRed"

?(flagowner vlajkaUSA == ownerU) : "us_flag_1" SetMarkerType "Marker"

?(flagowner vlajkaRUS == ownerR) : "rus_flag_1" SetMarkerType "Marker"

~1

?(flagowner vlajkaUSA == ownerU) : "us_flag" SetMarkerColor "ColorGreen"

?(flagowner vlajkaRUS == ownerR) : "rus_flag" SetMarkerColor "ColorGreen"

?(flagowner vlajkaUSA == ownerU) : "us_flag_1" SetMarkerType "Flag1"

?(flagowner vlajkaRUS == ownerR) : "rus_flag_1" SetMarkerType "Flag1"

goto "loop"

This shows the location of the flag as a marker on a map, however if the player with the flag gets killed the script keeps on running?  And if the player caps the flag the marker doesnt return to the other pole. Any help given will be appreciated!

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  

×