Jump to content
Sign in to follow this  
addicted

caping sector by soldiers not vehicles

Recommended Posts

Hello

Help, hilfe, помощь, pomocy, aiuto, aider !!! I'm trying to add triggers which changing colour of marker named "sector1" when are sized for 30 seconds by opfor or blufor soldiers. I have this three trigers. set on 30 seconds countdown.

trigger1
condition ({side _x == blufor} count thisList > {side _x == opfor} count thisList) && isServer
on act "sector1" setMarkerColor "ColorBlue"

trigger2
condition ({side _x == blufor} count thisList < {side _x == opfor} count thisList) && isServer
on act "sector1" setMarkerColor "ColorRed"

trigger3
({side _x == opfor} count thisList > 0 && ({side _x == opfor} count thisList == {side _x == blufor} count thisList)) && isServer

Everythink looks good but I realized that if one side will get inside the sector by vehicle, and will left that vehicle inside the sector and leave that sector then this vehicle will cap this sector :mad: .

How to write command that only soldiers can capture the sector. Help me please.

Share this post


Link to post
Share on other sites

Here,this modification to your code should be enough:

trigger1
condition ({(side _x == blufor) && (_x isKindOf "Man")} count thisList > {(side _x == opfor) && (_x isKindOf "Man")} count thisList) && isServer
on act "sector1" setMarkerColor "ColorBlue"

trigger2
condition ({(side _x == blufor)  && (_x isKindOf "Man")} count thisList < {(side _x == opfor) && (_x isKindOf "Man")} count thisList) && isServer
on act "sector1" setMarkerColor "ColorRed"

trigger3
({(side _x == opfor) && (_x isKindOf "Man")} count thisList > 0 && ({(side _x == opfor) && (_x isKindOf "Man")} count thisList == {(side _x == blufor) && (_x isKindOf "Man")} count thisList)) && isServer

Share this post


Link to post
Share on other sites

Thank you so much :D

At least its works. But there is still one thing. To capture the sector I have to leave vehicle. Is there any possibility to can catch sector in vehicle? I will try somethink like (_x isKindOf "Man" or _x isKindOf "Man Vehicle").

Edit. My idea doesn't work. If you have an idea how to make sector capturable by man or by man in vehicle - tell me please.

Edited by addIcted

Share this post


Link to post
Share on other sites

Thank you :D Killzone_Kid

Now everythink works perfect on singleplayer. I will check it in multi. By the way /killzonekid.com/ is it your site?

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  

×