Game Development Community

Stupid Question About Vehicles

by Ben Ewing · in General Discussion · 11/20/2005 (7:24 pm) · 8 replies

How do I load a vehicle into a Mission without having to manually load?

I tried
new SimGroup(Vehicles) {
New Car() {
Position = "-167.745 -858.014 51.8378";
Rotation = "-0.35783 -0.869875 -0.335922 7.02447";
Scale = "1 1 1";
DataBlock = "DefaultCar";
Mountable = "1";
};

};

But I get an error:
starter.fps/data/lobby.mis Line: 88 - Syntax error.
>>> Advanced script error report. Line 175.
>>> Some error context, with ## on sides of error halt:
lockCount = "0";

};

};

new SimGroup(Vehicles) {

New Car(##)## {

Position = "-167.745 -858.014 51.8378";

Rotation = "-0.35783 -0.869875 -0.335922 7.02447";
>>> Error report complete.

#1
11/20/2005 (8:39 pm)
New WheeledVehicle(){


Atleast i think thats it.
#2
11/20/2005 (8:47 pm)
I still get this Error
>>> Advanced script error report. Line 175.
>>> Some error context, with ## on sides of error halt:
};

};

new SimGroup(Vehicles) {

New WheeledVehicle(##C##ar) {

Position = "-167.745 -858.014 51.8378";

Rotation = "-0.35783 -0.869875 -0.335922 7.02447";
>>> Error report complete.
#3
11/20/2005 (8:57 pm)
I still get this Error
>>> Advanced script error report. Line 175.
>>> Some error context, with ## on sides of error halt:
};

};

new SimGroup(Vehicles) {

New WheeledVehicle(##C##ar) {

Position = "-167.745 -858.014 51.8378";

Rotation = "-0.35783 -0.869875 -0.335922 7.02447";
>>> Error report complete.
#4
11/20/2005 (9:01 pm)
Put Car in ".

so make it...

New WheeledVehicle("Car") {

I think thats it..maybe not im not sure
#5
11/20/2005 (9:15 pm)
Nope....
#6
11/21/2005 (12:40 am)
Please explain in theory what you're trying to do.
#7
11/21/2005 (6:26 am)
I am trying to get the vehicle to load along with the level, just lhow in Stronghold the Health Packs and Crossbows load....
#8
11/21/2005 (6:30 am)
Wait I got it, I was looking at all the things I could do, found Add Selection To Instant group.
Thanks :)