Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scriptname playerAliasScript extends ReferenceAlias
- activatorAliasScript property activatorScript auto hidden ; added by player
- event OnInit()
- activatorScript = theActivatorAlias as activatorAliasScript
- endevent
- function testPlayer()
- Debug.Notification("This is from the player alias script!")
- endfunction
- event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)
- activatorScript.testActivator()
- endevent
- ReferenceAlias property theActivatorAlias auto ; Added in CK
- ----TWO SEPARATE SCRIPTS----
- Scriptname activatorAliasScript extends ReferenceAlias
- playerAliasScript property playerScript auto hidden ; added by player
- event OnInit()
- playerScript = thePlayerAlias as playerAliasScript
- endevent
- function testActivator()
- Debug.Notification("This is from the activator alias script!")
- endfunction
- event OnActivate(ObjectReference akActionRef)
- playerScript.testPlayer()
- endevent
- ReferenceAlias property thePlayerAlias auto ; Added in CK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement