mytheos Posted January 29, 2010 Share Posted January 29, 2010 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 More sharing options...
Dyadya_Fedor Posted January 29, 2010 Share Posted January 29, 2010 You can control your light by 2 methods1)in effect script: ref MyLightset MyLight to placeatme LightName 1...MyLight.DisableMyLight.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 More sharing options...
Recommended Posts