Jump to content

How to use OnGetUp()


Recommended Posts

I cannot get this to fire, i have put the event in a script attached to piece of furniture, the script extends object reference and even with just the one event:

Event OnGetUp(ObjectReference akFurniture)
debug.trace("ongetup event")
EndEvent

 

there is no trace.

If the script extends Actor then papyrus.0.log complains that base type don't match and the script can't be attached.

Does this event work? It is listed as part of the Actor script so it might make sense that it doesn't work in an objectreference extended script except it does compile and I don't see how the ObjectReference akFurniture paramter could return a piece of furniture as the wiki:https://www.creationkit.com/index.php?title=OnGetUp_-_Actor

if the script is not attached to it:)

 

diziet

Link to comment
Share on other sites

Attach an Actor Script to an Actor Object, or yeah an Event will not fire, this is true for events in all objects, in all languages with Inheritance "presay", keep going you will learn how how it works.. BTW welcome to the deep end, nothing to fix except your learning curve.

 

Edit OFC there will be other Objects also registered to receive that Event. Question is, I got no idea what object your using or require, so cannot recommend anything. But I would check the AliasReference Script to see if it receives the Event

 

OR use this on the furniture Object Reference

Event OnActivate(ObjectReference akActionRef)

	If akActionRef == Game.GetPlayer()
	
	   ; do something cool

	EndIf
EndEvent

:devil:

Link to comment
Share on other sites

  • Recently Browsing   0 members

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