Kevek53215 Posted April 22, 2021 Share Posted April 22, 2021 // properties Spell Property LightSpell Auto MagicEffect Property LightEffect Auto Light Property MyLight Auto // Function Int Function qRGBColor( Int Red, Int Green, Int Blue ) Return ( ( Red * 512 ) + ( Green * 256 ) + Blue ) as Int EndFunction // Code that dont work ( it use SKSE and PO3 DLL ) // Help?... LightSpell.GetNthEffectMagicEffect(0).GetHitEffectArt().SetModelPath("NewModel.nif") TheColor.SetColor( qRGBColor( 255 , 0 , 0 ) ) SetLightColor( MyLight, TheColor ) SetLightRadius( MyLight, 15000.0 ) So why my SetLightColor and SetLightRadius ( Power of Three DLL ) dont work?and also why SetModelPath ( SKSE ) dont work?... Papyrus compile it fine... nothing in game change... Link to comment Share on other sites More sharing options...
maxarturo Posted April 22, 2021 Share Posted April 22, 2021 (edited) I guess that for "SetLightColor" and "SetLightRadius" (i've never used them) applies the same for all SKSE functions that changes texture, model... etc path like the function you are using "SetModelPath". The change does happen in real time, BUT, the model keeps the texture, model.... etc that the game engine has in memory, those function only work in real time if you Disable/Enable or Unequip/Equip... etc, otherwise the changes to the model (or the model) will only occur "OnCellDettach/Attach" - "OnUnload / Load" - "On lose LOS". I hope it helps. Edited April 22, 2021 by maxarturo Link to comment Share on other sites More sharing options...
Recommended Posts