Author Topic: Vehicle Scale?  (Read 943 times)

What is the code to set the scale of a wheeledvehicle datablock?

I know ObjectID.setScale("2 2 2"); will do the trick, but I want it scaled before it spawns.

Wouldn't you package the spawn function that spawns vehicles, and set the scale, before you call the parent?

Wouldn't you package the spawn function that spawns vehicles, and set the scale, before you call the parent?
The vehicle doesn't exist before the parent.

The vehicle doesn't exist before the parent.

I see, well then,  @OP scale it after the parent is called, i'm sure it'll LOOK like it was scaled when it was spawned.

So no way to just scale the datablock? Like scale = "2 2 2";

So no way to just scale the datablock? Like scale = "2 2 2";

Making a totally new datablock with a different scale wouldn't work. There's vehicle events that can set scale if you want it like that... I forgot is there's a specific way of doing it, but it's simple...

I see, well then,  @OP scale it after the parent is called, i'm sure it'll LOOK like it was scaled when it was spawned.
This

or

Look at how scale spawns work.

yourvehicle::onadd
setscale
You win.