OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Nobby on 04 Jun 2003, 23:51:29
-
How can you pick your own squad?
What I've got so far is you create a trigger (Radio alpha), have the guy you want to select move to a waypoint (Join) and then have a waypoint over yourself (Join and Lead), sycronize these all together and this works...
HOWEVER, you only get to pick 10 men using the radio commands and I want a wide variety of men to choose from, say 20-30.
Is this possible?
Cheers.
-
Yes.
Radio triggers are fine, though don't use join waypoints - messy. Instead use the join command
[loon1] join Nobby
If you are familiar with the setRadioMsg command you can use it to handle as many prospective loons as you like, though picking from 30 seems like a lot - it's hard for the player to absorb who they all are and what their different skill levels/weapons/uniforms are.
If it's not working, tell us what the exact problem is and we'll try and fix it.
-
do it via addaction... to each man u can select type:
action1 = this addaction ["Select", "select1.sqs"]
then create a script called select1.sqs and type this in it:
man removeaction action1
[man] join player
exit
then do that for all 30.... easy way to do it, but im also sure there is a way to do that all in one script... but thats beyond me.
-
Cheers guys.
It's much appreciated.
Nobby.