Jump to content

Scripting float ini help


AghastVenus1

Recommended Posts

I'm trying to write a script to change the power armor Pip Boy menu color based on what power armor helmet you're wearing. I'm very new to scripting, so I'm trying to start my script simple. I know the values I need to edit are:

fPAEffectColorR:Pipboy

fPAEffectColorG:Pipboy

fPAEffectColorB:Pipboy

And the script that I have so far (That isn't working) is:

Scriptname PAPipBoy:PAPipBoyColorChanger_Raider extends ObjectReference


Float fPAEffectColorR

Float fPAEffectColorG

Float fPAEffectColorB


Event OnEquipped(Actor akActor)
    If akActor == Game.GetPlayer()
        Utility.SetINIFloat(fPAEffectColorR, 0.30)
        Utility.SetINIFloat(fPAEffectColorG, 0.65)
        Utility.SetINIFloat(fPAEffectColorB, 0.35)
    EndIf
EndEvent

 

Any help would be appreciated!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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