Jump to content

Effect Shader Light placeatme removal?


mytheos

Recommended Posts

Its 6:00am so maybe I'm just too tired to find the info.

 

I'm writting a script for an effect shader.

 

I have everything working mostly, just can seem to add a light source to a target.

 

For example I shoot a riader and they burst into flames and ember then the corpse is a bright ember color and I want it to give off light for length of the script say 20 seconds or whatever.

 

How do I do this?

 

I tried a placeatme LightName 1

 

And it put the light at the raider's spot however it wasnt attached to them so if the corpse moved the light didnt follow....and of course I cant figure out how to turn the light off.

 

 

 

Any help would be VERY MUCH appreciated

Link to comment
Share on other sites

You can control your light by 2 methods

1)in effect script:

 

ref MyLight

set MyLight to placeatme LightName 1

...

MyLight.Disable

MyLight.MarkForDelete ; to prevent savegame bloat

 

2)Add script to ligth itself with timer and disable/markfordelete

 

To move light with corpse i suggest using "MoveTo" command.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...