Home   Help Search Login Register  

Author Topic: create vehicle  (Read 632 times)

0 Members and 1 Guest are viewing this topic.

CooK

  • Guest
create vehicle
« on: 18 Dec 2002, 05:28:42 »
yea i was wondering what is the script call for make a vehicle at a marker

vehicle name is (class name) skidoo

marker name is rent1


thx for the help

-cook

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:create vehicle
« Reply #1 on: 18 Dec 2002, 18:52:15 »
You need to use the getMarkerPos command to get the position of a marker, and the createVehicle command to create a vehicle.

Thus, your code would look like the following:

Code: [Select]
"skidoo" createVehicle getMarkerPos "rent1"
Ranger

CrashnBurn

  • Guest
Re:create vehicle
« Reply #2 on: 18 Dec 2002, 23:37:27 »
If you want the vehicle to be pointed a certain direction, give it a name when creating it like this -

car1 = "skidoo" createvehicle getmarkerpos "rent1"; car1 setdir 90

You can do this with a trigger if you want...no script necessary.
« Last Edit: 18 Dec 2002, 23:40:34 by CrashnBurn »

Darkone2020

  • Guest
Re:create vehicle
« Reply #3 on: 20 Dec 2002, 16:29:55 »
On The Subject of Vehicles?
I'm totaly new to the whole editing missions thing so maybe you guy's could help?

I've been atempting to make a Multi-player map For our new clan (yet to be named) But i've been having problems puting vehicles on the map "Without" Anybody inside them?? ???

Any info on this would greatly help as it's Driving me the Wall!!! :joystick:

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:create vehicle
« Reply #4 on: 20 Dec 2002, 18:35:05 »
I've been atempting to make a Multi-player map For our new clan (yet to be named) But i've been having problems puting vehicles on the map "Without" Anybody inside them?? ???

Not having all the details of your problem, I'll take a guess at the issue.

Probably what's going on is that you have not defined one of the playable units to be the player.  That is, you have selected either "playable" or "not playable" for each unit, while not making one of them "player".

If you do not have a unit marked as "player", then the editor does not allow you to place empty objects (which includes vehicles).  Thus, change any one of the playable units to "player", then your problem will be solved.

Player simply denotes which unit the player will be in a single player game, but it does not restrict your unit choice in multiplayer.  In multiplayer, the player unit acts just like any other playable unit in that you have the option of choosing it, but are not forced to choose it.
Ranger