Jump to content

Need Script Help


vidani

Recommended Posts

Scriptname aaaMRbohItemScript Extends ObjectReference

 

ObjectReference Property aaaMRbohChestREF Auto

Actor Property akReference Auto

 

Event OnActivate(ObjectReference akActionRef)

If akActionRef == Game.GetPlayer()

Debug.MessageBox("Hello, World!")

aaaMRbohChestREF.Activate(akReference)

ElseIf akActionRef != Game.GetPlayer()

Debug.MessageBox("Not The Player!")

EndIf

EndEvent

 

I am trying to remotely activate a container, and I am not having any luck. Please, someone point me in the right direction!!

Link to comment
Share on other sites

Scriptname aaaMRbohItemScript Extends ObjectReference

ObjectReference Property aaaMRbohChestREF Auto Actor Property akReference Auto

Event OnActivate(ObjectReference akActionRef)
If akActionRef == Game.GetPlayer()
	Debug.MessageBox("Hello, World!")
	aaaMRbohChestREF.Activate(Game.GetPlayer()) 
ElseIf akActionRef != Game.GetPlayer()
	Debug.MessageBox("Not The Player!")
EndIf
EndEvent

Edited by TheChan
Link to comment
Share on other sites

  • Recently Browsing   0 members

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