Jump to content
sinny

Is it possible to AttachTo a certain type of light to a vehicle?

Recommended Posts

Is it possible to AttachTo a certain type of light to a vehicle ?

I would like a helicopter searchlights lit the same way as Land_LampAirport_F .

But I do not want the helicopter to fly around with the entire lamp post.

 

In short : can you add the properties of a light type to a vehicle with some sort of "AttachTo" ?

 

 

Many thanks!

Share this post


Link to post
Share on other sites

I love you!

I haven´t tried it yet, but i love you anyway!

  • Like 1

Share this post


Link to post
Share on other sites
Okay many many thanks for the link you gave me, it works like a charm .... almost ...

 

When the vehicle is moving, the light is a little behind and become a strobe light. Is there something like "update every frame"'ish thing you could do?

Can you make directional light? Right now I have a big sun in the helicopter that lights up everything ... and flashes like a strobe light    :)

 

:dj:

Share this post


Link to post
Share on other sites

lol u already have what u want:

https://forums.bistudio.com/topic/189737-attachto-trying-to-attch-a-lamp-on-torret/#entry3006845

that event handler draw3d fires every frame...

with that directional thing, idk i never played around with light sources but this looks powerful:

https://community.bistudio.com/wiki/setLightAttenuation

u should crawl all those setLight... commands.

Share this post


Link to post
Share on other sites

Ok, i have been fiddeling around with this.... and i am going crazy...

Do you or anyone knows how to set the parameters right? The light just keeps strobing ...

 

:cry2:

Share this post


Link to post
Share on other sites

Ok, i have been fiddeling around with this.... and i am going crazy...

Do you or anyone knows how to set the parameters right? The light just keeps strobing ...

 

:cry2:

It's a thing with the engine. I have the same issue with my interior light script.

Share this post


Link to post
Share on other sites

Hmm... I see.... 

One odd thing tho, when you attach a lamp post to an vehicle, the light runs just fine and smooth... 

So how do i create my own lamp?? Want to join me in the hunt for that? You can create small interior lamps, which is awesome!

 

  :shine:

Share this post


Link to post
Share on other sites

Hmm, is there anyway to make objects textures invisible?

I have tried the :

hideObject = makes the whole lamp, with the lights dissapere.

setObjectTextures = nothing happens (on a vehicle, this gets effect)

setObjectMaterial = nothing happens (on a vehicle, this gets effect)

*the object is the Land_LampAirport_F

 

Or is it a bad idea?

 

44B43663BB28CE04EFD36C8F67998D8853D62BA2FF95265ADD8EFB12C3F825889B48C88FA0006160

 

 

Vanilla

8859C7C25B9C23F7ED878B930428BBE7B26059B8

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×