Jump to content

How to cast stonewall on youerself in a script.


ZippyDSMlee

Recommended Posts

Need to add stonewall perk for a weapon with a knock back effect, whats the proper way to cast it on the player.

 

 

 

Heres a crappy tossed together script to give you an idea of what I am trying to do.

ScriptName zippymoujorcritEffectScript


ref myself
ref mytarget

short rnd

Begin ScriptEffectStart

    set rnd to GetRandomPercent

    

    if rnd <= 99
        set mytarget to GetCombatTarget

        If mytarget.hasperk stonewall != 1
            set myself to GetSelf
            PlaceAtMe zippynullGrenadePulseExplosion
        Else
            ShowMessage StonewallMessage
        EndIf
    endif

End

==================================================

================

 

EDIT

 

 

 

Okay how about on equip? I can't get this to work

ScriptName zippymoujorstonewallEffectScript



Begin ScriptEffectStart


	begin OnEquip player

player.addperk 00165449

end

begin OnUnequip player

player.removeperk 00165449

end

End
Edited by ZippyDSMlee
Link to comment
Share on other sites

  • Recently Browsing   0 members

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