Home   Help Search Login Register  

Author Topic: Naming vehicles  (Read 2512 times)

0 Members and 1 Guest are viewing this topic.

Offline stephen271276

  • Members
  • *
Naming vehicles
« on: 31 Jan 2011, 16:40:34 »
If I name an opfor Vehicle "jim", but during a WP controlled patrol I place a "Get Out" WP is the vehicle still called "jim" or the driver who has got out?

Offline savedbygrace

  • Intel Depot
  • Administrator
  • *****
  • Be swift to hear...slow to speak...slow to wrath.
Re: Naming vehicles
« Reply #1 on: 31 Jan 2011, 17:43:30 »
Good question, test it.

In the waypoint following the getout waypoint, insert jim setdammage 1 in the onactivation field and see what happens.

Offline stephen271276

  • Members
  • *
Re: Naming vehicles
« Reply #2 on: 31 Jan 2011, 18:45:09 »
Vehicle.....
So how would I give the driver a name?

Offline SaOk

  • Missions Depot Staff
  • *****
    • My youtube profile
Re: Naming vehicles
« Reply #3 on: 31 Jan 2011, 22:29:23 »
To name the driver, use:
Code: [Select]
DriverN = driver jim;
The driver needs to be inside the car when the code is used. After that you can use DriverN to operate with that unit that was driving the car in that moment even if he have already abandoned the car.

Code: [Select]
DriverN setdammage 1;



Offline Barbolani

  • Members
  • *
Re: Naming vehicles
« Reply #4 on: 03 Feb 2011, 12:21:05 »
...or:

Place in the map an empty car, name it as you want

Place an inf unit in map, name it jim

On the init field of the inf unit put: "This MoveInDriver <nameofthecar>"

Instantly teleports jim to the driver position on the car, and later you can do whatever you want with both units,cos they have their own name :)