OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tim Pink on 02 Jul 2003, 08:50:59

Title: Get in the god damn vehicle
Post by: Tim Pink on 02 Jul 2003, 08:50:59
hi

im having this really annoying problem

i have a convoy of 3 HMMWV's named HMMWV 1, 2 and 3
and i created a 3 small ranger groups Ranger_2_1, Ranger_2_4 and Ranger_2_5

i want Ranger21 to hop in the first HMMWV, Ranger24 to hop in the second HMMWV and Ranger25 in the 3rd

i ve grouped the men using Ranger_2_1 = groupthis and so on and in the get in waypoint i placed in the on activation line
"_x assignascargo HMMWV1" foreach units Ranger_2_1; (units Ranger_2_1) ordergetin true and so on for the rest but when they get to the getin waypoint they just stop and they dont board the right vehicle

how do i make them get in their assigned vehicles because im going to go homocidal again

Thanx

Tim




Title: Re:Get in the god d**n vehicle
Post by: CrashnBurn on 02 Jul 2003, 10:00:02
(units Ranger_2_1) ordergetin true

This is wrong. It needs to be an array of unitnames, so you use the unitnames with brackets like so-

[unit1,unit2,unit3] ordergetin true
Title: Re:Get in the god d**n vehicle
Post by: deaddog on 02 Jul 2003, 14:52:13
Quote
(units Ranger_2_1) ordergetin true
This should work because "units" returns an array.  

Try changing the "get  in" waypoint to a standard "move" waypoint.  I bet OFP is confused because you have a "getin" without a matching "load" waypoint.

I answered a similar post a while back:
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=6875;start=0
Title: Re:Get in the god d**n vehicle
Post by: LCD on 02 Jul 2003, 15:37:05
nah it shudnt b a prob - but i think ofp have somtimesprob w/ da ordergetin array so try doin it like dat

"[_X] ordergetin true" foreach (units Ranger_2_1)

Quote
grouped the men using Ranger_2_1 = groupthis

also u need 2 remove da space between da group nd da this so it shud b

Ranger_2_1 = group this

:P :P :P

LCD OUT