OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ONoSixIsDown on 14 Nov 2005, 22:30:24

Title: player starts as cargo in a non-group vehicle
Post by: ONoSixIsDown on 14 Nov 2005, 22:30:24
I i'm trying to make a mission where a player starts as cargo in a vehicle with out the player and vehicle being in the same group.

what i want is to have the vehicle to go through a few waypoints, drop off the player at the "transport unload" waypoint, then continue on its way.  

i've tried the "assignAsCargo" and MoveToCargo" commands in the intitialization fields but cant get it to work.

am i going about this the wrong way?
Title: Re:player starts as cargo in a non-group vehicle
Post by: mccallum1992 on 14 Nov 2005, 22:35:12
I beleive searching the site will do this for you,
Just type in:
Name1 moveincargo Nameoftruck;

Title: Re:player starts as cargo in a non-group vehicle
Post by: 456820 on 14 Nov 2005, 22:35:46
ive never heard of "MoveTocargo" but you may be thinking of "Moveincargo" command ie
player moveincargo car1

also from the sounds of your mission it sounds like a group is in the truck and so is the player not grouped and is meant to disembark at the transport unload waypoint
one thing there if theres anyone else in the cargo position they will be forced to get out at the transport unload waypoint

hope anyof that helps
Title: Re:player starts as cargo in a non-group vehicle
Post by: ONoSixIsDown on 14 Nov 2005, 22:48:45
let me clarify a bit.  what i want to happen is this...

the player named player(named player) will start as cargo in a patrol boat(named boat).  the boat is to drop off the player at the shore, then move back out to sea.

i tried putting "player moveincargo boat" in the player's init. field but it didnt work.  i then tried putting it in the boat's initi. field.  I've also tried putting it in both unit's initi. field.

still cant figure out what i'm doing wrong.  maybe it just doesn't work with boats?


Title: Re:player starts as cargo in a non-group vehicle
Post by: THobson on 14 Nov 2005, 23:08:07
Might it be that boat is a type of vehicle and by calling the boat boat you are confusing the game?

Call the boat:  Boat1
in the init field of the player put:

this moveInCargo Boat1

As you mention Boat1 will need a Transport Unload waypoint.  The player unit will need a Get Out waypoint and these two waypoints need to be synchronised.  The boat will then need another waypoint out to sea so that it moves off from the shore.
Title: Re:player starts as cargo in a non-group vehicle
Post by: ONoSixIsDown on 14 Nov 2005, 23:19:53
thats excatly what was wrong, Thanks THobson.

and BTW, i managed to get this to work with out using a get out way point.