Author Topic: Vehicles with light?  (Read 1029 times)

Can vehicles emit light? If they can, how do I do it?

Attach a light to it.

I could have sworn it didn't work when I tried it. I shall try again.

Mount light to vehicle
Mount lights to player object

Code:
light.attachToObject(player)
Bone name in vehicle model

Uhhh Barna's Police/Taxi sedan version have lights that go on when you hit your light key :o

Mount light to vehicle
Mount lights to player object

Code:
light.attachToObject(player)
Bone name in vehicle model
Can I have the exact line of code please?

Theres an add on for this, I saw it somewhere.

Can I have the exact line of code please?
He's just switching between two images for that. They aren't actually lights. However, images have a couple of lighting variables that can be used to make them act similarly to the way lights do.
http://forum.returntoblockland.com/dlm/viewFile.php?id=3420

No no, I'm making a jack-o-lantern and I just want it to emit light. No need for toggling anything. How do I attach a light to a vehicle?

Vehicles with lights are 100% possible, but it's tricky.

There needs to be a vehicle with mount points on the correct position for the lights

No no, I'm making a jack-o-lantern and I just want it to emit light. No need for toggling anything. How do I attach a light to a vehicle?
That add-on still shows how to attach a light...

As it says in the add-on, Vehicle_BlockoSedan.cs:
Code: [Select]
%this.car[%a].mountImage(BlockoSedanPoliceLightBImage,0);

That add-on still shows how to attach a light...

As it says in the add-on, Vehicle_BlockoSedan.cs:
Code: [Select]
%this.car[%a].mountImage(BlockoSedanPoliceLightBImage,0);
You can't mount lights.

Demian, can the light be centered?

You can't mount lights.

Demian, can the light be centered?

You can if you make it a particle, than emitter, then image. Of course, that is a waste of datablocks, but you can put it in a certain spot.

Okay, here's how it was done:

First I made an empty "bot" which consisted of an armature and root animation (must for all bot based things). This is what you mount the lights to. Then you make mountpoints for the vehicle itself. This is where the empty bots go. Rest was done by Trigun and it should be in the script.

Okay, here's how it was done:

First I made an empty "bot" which consisted of an armature and root animation (must for all bot based things). This is what you mount the lights to. Then you make mountpoints for the vehicle itself. This is where the empty bots go. Rest was done by Trigun and it should be in the script.
Correct, that's exactly how I was able to do it.
I did it quickly using empty.dts

I'm just lacking modelers who want to set up those mountpoints.