OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Petrarch on 07 Jan 2003, 21:25:56
-
I am having severe problems with Johan Gustaffson's editing tutorial, mainly concerned with alpha boarding the truck. Anyone have a completed version of the mission so I can see how it is meant to be done?
-
uuuhm, sorry m8 - can't recall that particular mission :-\ :) but ya can easily
make a pack of AI-morons get in the back of a truck if ya simply use a "Get In" waypoint,
put it next to the truck, and then put a "LOAD" wp (from the truck).
now hit F5 to drag a blue "synchronizing" line between the two wp's. :)
:-* Then ya don't need any "assign as..." commands or any other mofo crap.
And to get 'em out, just use the same method, but this time a GET OUT & a Transport Unload WP, synched.
-
Well basically the player gets in a jeep, and drives to his squad. Whenever I get out of the jeep, the leader of the squad I just joined tells me to get back in. >:(
also, when I reach the squad they are supposed to get into the truck, one of them as driver, they don't.
I have followed the tutorial word for word.
-
wouldn't know ??? ::) maybe he don't get in because he thinks yer STILL the driver,
like if he's told to get in before you get out ( :P ;D ) dunno really....
But as long as you're learning (you are, right now... hm?! ) then all is well 8) ;)
Let's make our own lil' tute here, if ya can't get that other thing to work.
(though I seem to remember Johann's tute as one of the more profound ones?!)
Say, you drive a jeep. If the jeep is a "JEEP" ( :beat: ), then you're the default driver, right?! :D
K' then yer in-game-name would be "JeepD" if the vehicle was named Jeep in the name field
when created on the map. So to let YOU join someone would take a trigger like this one:
Condition field :
!(jeepD in Jeep) && Jeep in thislist
Then set the trigger to activated by WEST/present.
And the "On Activation" field could go (provided we already addded some group anywhere near) :
[jeepD] join Morons
This would make you join a pack of troopers with the grpName "morons"
To name a group, put this in the INIT field of a grp member (any member) :
morons = units group this ;)
And the waypoint for assingning you back into the vehicle is now allowed to happen.
(this WP would then obviously not activate before you have joined the group).
So put a "HOLD" wp right in front of the grp leader, the hit F5 and drag a
synch. line from wp to the trigger, so any wp's after this HOLD WP won't happen
till the trigger have fired.
Then a simple GET IN waypoint can be put on the spot where your jeep supposed to
be parked once you've joined the group.
And in this new WP, just type the following spells :
"_x action ["GET IN", jeep]" foreach morons; assignasCargo Morons
This would make the leader command you & the other troopers in back of the jeep.
(so the group can't be much more then a few d00ds, or you'll have to use a truck instead) ::) ;D
PS. To assign a specific d00d as driver, just put :
Bob (his uniName, made in his "NAME" field when created) action ["GET IN", jeep]; assignasDriver Bob
hope it helps, m8 :-*
feel free to nag at my sorry ass if it doesn't rock! :hmm: :noo: :cheers:
-
[jeepD] join Morons
::)
dont think it wil work - as he wil no lnger b da driver of da jeep :P
or im mising somthin here ;)
LCD OUT
-
if he aint got a name, and noone hasnt got into the car,
then I guess yer still jeepD (driver) ??? dunno
-
ill sayput dere somthin like
bob = jeepD
den use bob as da name ;D
LCD OUT
-
sounds fair enough!
-
I got a lot of headaches from that tutorial also. Wait til you want the helicopter to land!
I suggest you attach the mission to your post, problems and all, as it is easier for someone else to look at it and respond specifically rather than make a lot of guesses.