OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: PimpD on 17 Sep 2003, 16:56:22
-
hi anyone know How I can make PLAYERS (MultiPlayer) start in A heli when they start an mission?
-
If you have the chopper in same group as the units, you can set 'In Cargo' in the unit menu special field.
That's 'Unit menu' -> 'Special' drop down box -> 'In cargo'
If you don't you can use a command
this moveincargo vehiclename
where this can be replaced with the units name if you're not using the command from his init field.
vehiclename should be replaced by the name of the vehicle you want the unit to board.
A friendly tip if you have all the units in same group would be to use
"_x moveincargo vehiclename" foreach units group this
in the leaders init field.
-
A friendly tip if you have all the units in same group would be to use
"_x moveincargo vehiclename" foreach units group this
in the leaders init field.
@Artak, as it's multiplayer, i wouldn't recommend this one.
Remember what has happened, when those "think_on_my_own_way" guys decided not to choose
the groupleader, and then they even disabled the Leader's AI
slot in the player selection menu.
Ya know their yelling when all were starting in the water instead of inside the chopper ;D
@PimpD - stick to Artak's first suggestion: this MoveIncargo heli
in each units init field, or unitname MoveInCargo heli
in the init.sqs file.
~S~ CD
-
Naturally, you're right Chris :)
-
you could also use this on the Group leaders'INIT FIELD: "_x moveincargoheli" foreach units this ;)
ENJOY 8)
-
umm..
"_x moveincargo heli" foreach units group this
-
Well, just for info:
"_x moveinCargo heliname" forEach units this
"_x moveinCargo heliname" forEach units group this
works only in the init field
"_x moveinCargo heliname" forEach units unitname
"_x moveinCargo heliname" forEach units groupname
"_x moveinCargo heliname" forEach units group unitname
works somewhere external (not limited to the init field of the
unit itself)
But generally all variants do the same.
units unitname = all units in the same group as the unit itself
units groupname = all units of given group
units group unitname = all units of the group of given unit
units this = all units of the unit, where THIS belongs to
group this = all units of the group, where THIS belongs to
hope this clears some confusion i always take notice off everytime when it comes to movein/driver-cargo-gunner situations.
~S~ CD