OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: kahuna7 on 11 Jul 2003, 06:45:54
-
I have a few questions. First of all, I am a new member to this board but I have been coming to this message board and this site for a good while.
1.How to move a group into a vehicle without the vehicle being part of the group or using:
this moveincargo "vehicle name"
How can I move an entire group without using the above script on each unit?
2. How can I get a chopper to come pick a group up on a radio command (radio alpha, etc).
3. How to get 24 men to eject out of a chinook?
4. How to get groups to move somewhere via radio?
5. How does the group=this thing work?
Plz tell me how to do word for word, character for character. Tell me if I should put a space between something because alpha= group this looks just like alpha = group this on my screen...
Th8x 4 all ur help ;)
-
BTW...does anyone know the script to make a guy do pushups? :D
-
Also, how can I make a group preform an action. Such as sit down or salute (and cancel the salute).
Also, how do I make a briefing? I know it involves wordpad...
-
;---Start----
_unit = _this select 0
_moves = _this select 1
_i = 2
#routine
_unit playmove "FXStandDip"
_i = _i + 1
? _i < _moves : goto "routine"
exit
;---End----
You activate it [unit, amount of push-ups] exec pushup.sqs
example "[dude, 10] exec pushup.sqs"
Found that one for you by searching the forums. The rest I'm gonna leave for you to learn by reading from tutorials because I got to run to work for now ;)
-
http://www.ofpec.com/editors/browse.php?category=1_1 that's for a briefing.html file tutorial by snYpir.
1. unitname moveincargo vehiclename will work
2. Make a chopper and name it as chopper. Make a trigger activated by radio alpha. Type in the triggers on activation field choppergo = true. Place a waypoint right on top of the chopper and type in it's condition field choppergo. Make a new load waypoint for the chopper at a place where you want the pickup. Make a get in waypoint for your group near the choppers load waypoint. Synchronize them. Make a transport unload waypoint for the chopper and a get out waypoint for your group to a spot where you want to be dropped off.
3. Use this script for both 12 men groups individually or modify the script by typing in an array containing all the units in cargo.
_aunits = units [b]_groupname[/b]
_i = 0
_Max = count _aunits
#Here
(_aunits select _i) action ["EJECT",[b]choppername[/b]]
unassignvehicle (_aunits select _i)
_i=_i+1
~1
?_Max>_i:goto "Here"
4. Make a radio trigger and put a variable = true in it's 'on activation' field. Then make a group and a move waypoint right on top of it and type variable to it's condition field. Make a second waypoint for the group to a place where you want them to move after the radio call.
5. group = this thing works by you typing in a groupleaders init field mygroup = group this. After done with it the group's name is mygroup.
To get a whole group perform an action try
"_x playmove {fxstanddip}" foreach units mygroup
-
Th8x 4 ur help Artak... :-*
But on my first question, I need to know how to move a "group" not a unit into a vehicle... :-\
Thank you for your help...
-
Ok, I'm not sure about the syntax but here goes.
Name your group typing mygroup = group this in the leader's init field
Then use a line something like this
"_x moveincargo vehiclename" foreach units mygroup
-
http://www.ofpec.com/includes/download2.php?id=114 (http://www.ofpec.com/includes/download2.php?id=114) Thats a link to a nice script for ejecting a whole group from a heli, i used it and its great.
BTW If u dont wanna name stuff you can do "_x moveincargo vehicle" foreach units group man1. Using the "_x command will alolow u to do a lot of other things with ur mans whole group.
-=CC=-