Jump to content

[LE] Why this don't work?... ( script )


Recommended Posts


 // 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

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 by maxarturo
Link to comment
Share on other sites

  • Recently Browsing   0 members

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