Skip to content
/ fo4-isp Public

Intelligent Snap Points (ISP) is a pure Papyrus library which adds two new events to settlement items: OnSnapped and OnUnsnapped.

Notifications You must be signed in to change notification settings

cadpnq/fo4-isp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intelligent Snap Points

Intelligent Snap Points (ISP) is a pure Papyrus library which adds two new events to settlement items: OnSnapped and OnUnsnapped.

example code for an object that brings up a message box whenever it is (un)snapped to/from something:

Scriptname ISP_BlockScript extends ObjectReference

ISP_Script ISPSelf

Event OnWorkshopObjectPlaced(ObjectReference akReference)
	ISPSelf = (Self as ObjectReference) as ISP_Script
	ISPSelf.Register(Self)
EndEvent

Event OnWorkshopObjectDestroyed(ObjectReference akReference)
	ISPSelf.Unregister(Self)
EndEvent


Event ISP_Script.OnSnapped(ISP_Script akSender, Var[] akArgs)
	Debug.MessageBox("Snapped: " + Self)
EndEvent

Event ISP_Script.OnUnsnapped(ISP_Script akSender, Var[] akArgs)
	Debug.MessageBox("Unsnapped: " + Self)
EndEvent

About

Intelligent Snap Points (ISP) is a pure Papyrus library which adds two new events to settlement items: OnSnapped and OnUnsnapped.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published