Jump to content

Scripting Help


Syn3r

Recommended Posts

I'm trying to make a weapon that unlocks anything within your lockpick skill so the higher your lockpick skill the more items you unlock, I also want it to work on terminals. I'm bad scripts so any help would be appreciated.

Edited by JTyo135
Link to comment
Share on other sites

I think the only way to do this is with NVSE, using an OnHit or OnHitWith event handler. Here's an example that simply shows a message when something is hit with a weapon, then you can work from there:

scriptname StartupScript

begin GameMode
	if (GetGameRestarted
		SetEventHandler "OnHitWith", OnHitWithHandler, "second"::SomeWeaponForm
	endif
end
scriptname OnHitWithHandler
ref rTarget
ref rWeapon

begin Function { rTarget, rWeapon }

	MessageEx "%n was shot with %n", rTarget, rWeapon

end
Link to comment
Share on other sites

  • Recently Browsing   0 members

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