Jump to content

Need scripting help!


L0LLz

Recommended Posts

I'm fairly new to modding Fallout 3 but i've gotten the hang of basic scripting and slowly getting better. So i'm trying to make a script so when you put on certain armor you gain the ability of infra-red vision(Imagespace Modifier) and you can change the weapon projectile with a keypress. I've gotten the Imagespace working but when I try to save the script it says im missing an Integer on line 8 as well as a Set.

 

int iGetKeyPressed
int NumEnter

Begin OnEquip
ApplyImagespaceModifier infrared
Set iGetKeyPressed to GetKeyPress 	;(Missing int and set on this line. Whut do?)
Set NumEnter to 156
If GetKeyPress = NumEnter
	SetWeaponProjectile GrenadeFragProjectile
EndIf
End

Begin OnUnequip
RemoveImagespaceModifier infrared
End

 

If I totally messed up that's cause I suck at scripting...

Link to comment
Share on other sites

  • Recently Browsing   0 members

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