OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: madwolfnemesis on 20 Aug 2003, 10:51:53

Title: Display different radio messages for different players
Post by: madwolfnemesis on 20 Aug 2003, 10:51:53
How should I go abt displaying different messages to different players in multiplayer?

Let's say, player1 has these commands

1:Drive
2:Explode
3:Deploy

And Player2 has these commands

1:Sit
2:Detonate
3:Fire

How should I make it so they see different commands in scripting?
And also, how to make a 2/3 level radio net commands?
Title: Re:Display different radio messages for different players
Post by: madwolfnemesis on 21 Aug 2003, 09:55:06
 ??? ??? ???
Title: Re:Display different radio messages for different players
Post by: Chris Death on 21 Aug 2003, 15:48:22
I think, nobody's answering, because it's not really
clear, what you want:

is it:
Code: [Select]
displaying different messages to different players in multiplayer?

or is it:
Code: [Select]
displaying different custom actions to different players in multiplayer?

And what i totally couldn't figure out yet:

Code: [Select]
how to make a 2/3 level radio net commands

You need to go a lil bit more into detail of what you wanna
do, and what you need.

I mean off course i got, that you want different custom actions appear for different players
but upon your question that's not really easy for others
to figure out  ;)


*hint*

condition: unitname == player

while unitname represents the name you have given the unit
in editor.

would be the right condition to check, wether the unit
is local or not.

In a script you could have as first lines:

?(soldier1 == player): goto "player1"
?(soldier2 == player): goto "player2"

#player1
blablabla...add_custom_actions_for_player1_etc.....
exit

#player2
blablabla...add_custom_actions_for_player2_etc.....
exit


~S~ CD