OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Cheese Toasty on 17 Jul 2003, 15:34:23
-
Posted this in the wrong section first - apologies...
My question is...
In a MP scenario where i'm using radio triggers to allow the WEST to do things (e.g. summon a helicopter for evac) - how do I stop the radio commands from appearing in the command menus of both EAST and WEST players.
I don't want EAST calling a helicopter that belongs to the WEST or even being able to see that the WEST had that option.
I basically would like seperate radio commands for EAST and WEST in MP is it possible?
-
Is the answer to my question to make an init.sqs and include a line that will block the radio commands i want hidden for each EAST player.
e.g.
?!(player == east1): 1 setRadioMsg "NULL"
?!(player == east2): 1 setRadioMsg "NULL"
etc, etc
or is it that i should put... 1 setRadioMsg "NULL" into the init field of each EAST player...
or am i not even close ???
-
Hello,
I used the following commands in my init.sqs file:
? (player==player2) : 1 setRadioMsg "Null"
? (player==player2) : 2 setRadioMsg "Null"
? (player==player2) : 3 setRadioMsg "Null"
? (player==player2) : 4 setRadioMsg "Null"
? (player==player2) : 5 setRadioMsg "Null"
? (player==player1) : 6 setRadioMsg "Null"
? (player==player1) : 7 setRadioMsg "Null"
? (player==player1) : 8 setRadioMsg "Null"
? (player==player1) : 9 setRadioMsg "Null"
? (player==player1) : 10 setRadioMsg "Null"
Player1 is playing on the West side and Player 2 is playing on the East side.
The above commands allow Player 1 to choose 5 radiocommands (Alpha, Bravo, Charlie, Delta and Echo) while Player 2 can also choose 5 radiocommands (Foxtrot, Golf, Hotel, India, Julliet).
Player 1 can not select radiocommands specifically assigned for Player 2 and vice versa.
Hope this helps.
Ronald Speirs
-
You can use the "side" function to do it all in one line, i.e.
?(side player != WEST): {_x setRadioMsg "NULL"} forEach [1,2,3,4,5]
?(side player != EAST): {_x setRadioMsg "NULL"} forEach [6,7,8,9,10]
So 1-5 are available only to west and 6-10 available only to east.