SWAT 4 Commands - Need some help with Conditions

536 views
Skip to first unread message

Damn The Machine

unread,
Jan 2, 2015, 1:51:20 PM1/2/15
to voice...@googlegroups.com
Hey people, I was wondering if someone more experienced than me could help me with a script that I am trying to setup.

I'm trying to make commands for SWAT 4. What I am trying to do is set conditions for Team colors.
(For those that don't know the game, what I mean with team colors is that your squad/team is divided into three color coded teams; Red and Blue, and Gold for All)
The Controls for switching Colors is TAB, and it circles through them (Gold > Red > Blue >Gold).

Example Values: Gold = 1 ; Red = 2 ; Blue = 3

  • For Gold
if Gold is selected, nothing should happen and it should leave it on value 1(Gold).
If Red is selected, press TAB twice to go to Gold and change the condition to value 1(Gold).
If Blue is selected, press TAB once to go to Gold and chance the condition to Value 1(Gold).

  • For Red
If Gold is selected, press TAB once and change the condition to value 2(Red).
If Red is selected, nothing should happen and it should leave it on value 2(Red).
If Blue is selected, press TAB twice and chance the condition to value 2(Red)

  • For Blue
If Gold is selected, press TAB twice and change the condition to value 3(Blue).
If Red is selected, press TAB once and change the condition to value 3(Blue).
If Blue is selected, nothing should happen and it should leave it on value 3(Blue).

These are my attempts to set this up, but it is not working properly for some reason I can't explain.
If someone who knows a bit more about these commands could correct my mistakes, that would be awesome.

Gold ; Red ; Blue

GoldRedBlue





Damn The Machine

unread,
Jan 2, 2015, 2:03:17 PM1/2/15
to voice...@googlegroups.com
Edit: I realize the first picture for Gold has the line "Set [squad-color] value to 1" and probably should not be there. At first I wasn't sure if it should be there or not, but I removed it now, so Ignore it and act as if it's not even there.
BTW still doesn't make the commands work :3

Luca D

unread,
Jan 2, 2015, 2:12:10 PM1/2/15
to voice...@googlegroups.com
I'm not sure if i am missing something... i see a bit of a mix-up in the condition blocks, between two values, [squad-color] and [team-color], but your commands here only set [squad-color] directly... is there any other command that sets the second variable, or are you just confusing the two names (and that's why it does not works)?

Damn The Machine

unread,
Jan 2, 2015, 2:41:27 PM1/2/15
to voice...@googlegroups.com
It's a mix-up, I changed it half way from [squad-color] to [team color] for some stupid reason (probably thought its easier to remember). But now I fixed it and it works fine, Thanks Luca D, you are the best! :D
I might write here again if I get stuck on something that needs helping, or...correcting :P
Reply all
Reply to author
Forward
0 new messages