Jump to content

help with script


betto212

Recommended Posts

if someone know how put this small script to run would be great... i´m trying to make some weapons add some penalty to respective skill to emulate the recoil that they would do as spread ...

 

---------------------------------------------------------------------------------

 

scn smallguns10penalty

 

ref myself

 

set myself to getself

 

 

begin onquip myself

myself.ModActorValue smallguns -10

End

 

begin onunequip myself

myself.ModActorValue smallguns 10

end

---------------------------------------------------------------------------------

Link to comment
Share on other sites

Attach the script to the weapon and you can skip the variable stuff, I think.

 

ScriptName SmallGuns10Penalty

Begin OnEquip
ModActorValue Smallguns -10
End

Begin OnUnEquip
ModActorValue Smallguns 10
End

 

Haven't tested it but I am pretty sure that'll work. This way, no matter who equips the gun (NPC or Player) their skills will be effected. If you want it to just affect the player, change the appropriate lines above to OnEquip.Player and OnUnEquip.Player.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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