Jump to content

weapon spread script


betto212

Recommended Posts

i did this script for try to balance the weapon spread in another way. so i set the weapon min spread to 0 and attach this script to the weapon but the value not update if the the skill is upgraded... then for adjust the value its required to unload and load again the weapon ... if someone know a way to fix the need of unload and load the weapon to force update the skill

 

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

ScriptName spreadminigun

 

ref myref

ref penalty_35

ref penalty_strength

ref penalty_total

 

 

Begin OnEquip

set myRef to GetContainer

 

 

 

set penalty_35 to ((myref.getav bigguns)*(0.35))

set penalty_strength to ( myref.getav bigguns*(10- myref.getav strength )*(0.015))

 

set penalty_total to (penalty_35 + penalty_strength )

 

myref.DamageAV bigguns penalty_total

 

End

 

 

 

Begin OnUnEquip

 

myref.restoreAV bigguns penalty_total

End

Link to comment
Share on other sites

most likely will need to run a script in game mode

 

http://cs.elderscrolls.com/constwiki/index.php/GameMode

 

If I remember theres a way to limit how often the script will trigger

so its not running every frame

 

---

Maybe make a quest script that triggers every so often

so when you equip it starts the quest

and unequip it stops it

 

http://geck.bethsoft.com/index.php/Quest_scripts

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