OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: renegade798 on 22 Jan 2004, 10:13:41

Title: Crew move to vehicle when attacked
Post by: renegade798 on 22 Jan 2004, 10:13:41
How do you make it so that say a tank crew is sitting by a fire, then they're attacked, and they run to their tank automatically.
Title: Re:Crew move to vehicle when attacked
Post by: macguba on 22 Jan 2004, 11:17:43
The tank crew will have lets say three waypoints

HOLD   <--------------- synchro a switch trigger with this one
GETIN  
SEEK AND DESTROY

There tutorials and hundreds of forum posts to help you learn about switch triggers.
Title: Re:Crew move to vehicle when attacked
Post by: jepo on 22 Jan 2004, 11:38:12
i've been havin a problem with this one as well, and where can i find the tutorial since OFPEC isn't running
Title: Re:Crew move to vehicle when attacked
Post by: 8 Ball on 22 Jan 2004, 11:54:24
Most of the editors depot is up. Use this link : http://www.ofpec.com/editors
Title: Re:Crew move to vehicle when attacked
Post by: renegade798 on 22 Jan 2004, 13:47:01
Another question, I want this single unit to walk up to and get in a car, so I select him choose the waypoint GET IN put it over the car and then when I preview it her just walks up to the car and stands next to it. And also he didnt even start to walk to the car until I added another man to his squad. Can you tell me why these 2 things happen.

Also how do you start a mission with a person sitting.

        -Thanx
Title: Re:Crew move to vehicle when attacked
Post by: jepo on 22 Jan 2004, 14:04:45
thats weird...
for me that happens when i do it on Intro, the unit just stands in front of the car.

To start someone sitting down, put in their init field
unitname switchmove "effectstandsitdown"
Title: Re:Crew move to vehicle when attacked
Post by: Artak on 22 Jan 2004, 15:03:31
Check to make sure the car is unlocked.
Title: Re:Crew move to vehicle when attacked
Post by: renegade798 on 22 Jan 2004, 20:17:15
Okay i'll try that
Title: Re:Crew move to vehicle when attacked
Post by: myke13021 on 22 Jan 2004, 20:26:59
did you tried to create the GETIN waypoint directly onto the car? this way it should be attached to the car.....not creatin besides the car and then movin it onto

:edit:

ok tried it now for being sure...
created unit and car, put a getin waypoint near car and dragged it onto the car = unit is not boerding car

created unit and car, selected unit and created getin waypoint directly ontop of car = unit gets in car
Title: Re:Crew move to vehicle when attacked
Post by: renegade798 on 22 Jan 2004, 20:28:05
I set the car to unlocked and still the guy walked up to it and just stood next it, so I dunno wat the problem is, so anyone has any idea please help!!!

        -thanx
Title: Re:Crew move to vehicle when attacked
Post by: macguba on 22 Jan 2004, 20:35:32
I suspect that the problem is that you haven't read myke13021's last post properly.   ::)
Title: Re:Crew move to vehicle when attacked
Post by: myke13021 on 22 Jan 2004, 20:42:43
@macguba

i wrote my last post at the same time as renegade...lol
Title: Re:Crew move to vehicle when attacked
Post by: renegade798 on 22 Jan 2004, 20:53:08
I'll try that thanks


Also how do you light a fire before the mission starts, and how do you tell a guy to light a fire.

         -thanx
Title: Re:Crew move to vehicle when attacked
Post by: myke13021 on 22 Jan 2004, 20:55:52
light a fire before mission starts (means the fire is burning when start)

in it's init field: this inflame true

how to tell a unit to light a fire.....hmmm...check the group commands...should be in there
Title: Re:Crew move to vehicle when attacked
Post by: renegade798 on 22 Jan 2004, 20:58:52
thanx again myke, for the fire and the waypoint thing, but do you know how to make the guy get in as the driver, he keeps getting in as the passenger.

Also how do you make it so that a guy will walk to the same waypoints over and over, like he walks to the first waypoint, then the second, then the third, then back to the first, second, third, and do that over.

          -thanx
Title: Re:Crew move to vehicle when attacked
Post by: macguba on 22 Jan 2004, 21:07:51
Use a cycle waypoint.  Place it last, but put it near the first one

move
move
move
move
cycle (placed near the first)
Title: Re:Crew move to vehicle when attacked
Post by: renegade798 on 22 Jan 2004, 21:23:33
thanx for the waypoint thing, also the guy wont sit down when I type (his name's bob):

bob switchmove "effectstandsitdown"

There's no error message or anything, just when I preview it he's standing up.

         -thanx
Title: Re:Crew move to vehicle when attacked
Post by: myke13021 on 22 Jan 2004, 21:25:38
thanx again myke, for the fire and the waypoint thing, but do you know how to make the guy get in as the driver, he keeps getting in as the passenger.

hmmm....at my side he was gettin in as driver...but you can try this...name the car...uhm...say "car"
then in the init field of the unit you want to getin as driver, write:

this assignasdriver "car"

for the second part, go with macguba
Title: Re:Crew move to vehicle when attacked
Post by: macguba on 22 Jan 2004, 21:48:18
switchmoves don't work in init fields, I think .. give him a hold waypoint where he starts, put the command in there and synchro the wp with a switch trigger so he'll get up when the enemy arrive or whatever.