addicted 1 Posted April 14, 2013 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
Tajin 337 Posted April 15, 2013 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
addicted 1 Posted April 15, 2013 (edited) 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 April 15, 2013 by addIcted Share this post Link to post Share on other sites
killzone_kid 1222 Posted April 15, 2013 change _x isKindOf "Man" to isPlayer _x Share this post Link to post Share on other sites
addicted 1 Posted April 15, 2013 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