OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: pazuzu on 10 Jul 2004, 18:52:18
-
Hi, in the mission I'm making I have the player call in an artillary strike for the last objective. I have the radio command hidden until just before last objective but I found out only the leader can call it in.
How do I make it so any team member can use radio command & call for arty strike?
I thought I had to put bossgroup=group this in the init of leader but this doesn't work.
Thanks.
-
instead of using a radio command you could use the addaction command.
-
Thanks, I looked at addaction command in command reference but I have no idea how it is used...
I know there is a way to group team so if leader dies the next in command will have access to radio command....I just cant remember how it works...
-
Afaik, the new leader will automatically be assigned by ofp, and he will therefor have acces to the radio command.
But what I understand from your first post is you want every group member to be able to call the artillery.
I assume you have 4 players in your MP mission, p1 p2 p3 and p4.
Once you reach the final stage you enable the action for all players. In your last part script add these lines:
artillerystrike = p1 addaction["Call Artillery", "artillery.sqs"]
artillerystrike = p2 addaction["Call Artillery", "artillery.sqs"]
artillerystrike = p3 addaction["Call Artillery", "artillery.sqs"]
artillerystrike = p4 addaction["Call Artillery", "artillery.sqs"]
this will give all units the option to call the artillery.
Now don't forget to remove the action once one player has requested the artillery.
eg. in artillery.sqs make the first line:
p1 removeaction artillerystrike
p2 removeaction artillerystrike
p3 removeaction artillerystrike
p4 removeaction artillerystrike
Does this make sense to you?