Jump to content
Sign in to follow this  
Cabbagehead

I need an empty vehicle....

Recommended Posts

I'm experimenting with the mission editor and have come across a problem. I've searched the forum but none of the posts completely answered my question.

My plan for the mission is to have the players strafe a truck depot in a helicopter. However, whenever I place empty trucks (using the empty vehicle drop-down menu on the insert unit window), the trucks show up as white (neutral) squares on their HUD. I want them to show up as red (enemy). How do I place an empty vehicle that still has a side?

Maybe I should place the vehicle with the correct side (West) and then put something in the init field to strip it of occupants? But I wouldn't know what to put in the init field.

Thanks for any help!

Share this post


Link to post
Share on other sites

Well you could script it or use waypoints, waypoints would be quicker for me to explain so :

1. Give the west truck a getout waypoint next to it.

2. The a move waypoint after to a place where you want the men from the truck to go.

Thats it.

RED

Share this post


Link to post
Share on other sites

An empty vehicle will always show up as white/neutral, regardless of whether a soldier has just got out of it or not.

Try this: put normal (non-empty) trucks on the map, and in the initialisation field for each one type:

this setfuel 0;

This will remove the trucks fuel, so it won't go anywhere, but with the guy still in it, it will still have a side. The chopper should attack no problem :-)

EDIT: Edited, had better idea  biggrin.gif

Share this post


Link to post
Share on other sites

You could also try, place an enemy ai soldier into

an empty truck, and change his behaviour to careless.

I think, from now the chopper would know, that this is

an enemy truck.

put this into the init-field of the soldier:

this moveincargo your_truck; this setbehaviour "careless"

Your_truck represents the name of your truck.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (DV Chris Death @ Mar. 28 2002,13:13)</td></tr><tr><td id="QUOTE">You could also try, place an enemy ai soldier into

an empty truck, and change his behaviour to careless.

I think, from now the chopper would know, that this is

an enemy truck.

put this into the init-field of the soldier:

this moveincargo your_truck; this setbehaviour "careless"

Your_truck represents the name of your truck.<span id='postcolor'>

Better still, combine the two!

Place a non-empty truck, and in the init field type:

this setfuel 0; this setbehaviour "careless";

Then you'll have a truck with a side that won't move, and the guy in it is no threat.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×