betto212 Posted December 31, 2008 Posted December 31, 2008 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 -10End begin onunequip myself myself.ModActorValue smallguns 10end---------------------------------------------------------------------------------
Rekicker Posted December 31, 2008 Posted December 31, 2008 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.