Jump to content

Scripting Question


David Brasher

Recommended Posts

How do you say one of these two things in Papyrus?

 

Begin OnActivate Player 

 

OR

 

If GetIsActionREF Player == 1
      ; * Do Stuff *
EndIf

 

This won't compile:

 

Event OnActivate (PlayerREF akActionRef)
      ; * Do Stuff *
EndEvent

Actor Property PlayerREF  Auto

 

The wiki is very vague and lacks adequate example scripts as usual.

Edited by David Brasher
Link to comment
Share on other sites

Event OnActivate(ObjectReference akActionRef)
if akActionRef == PlayerRef
	;do stuff
endif
EndEvent

Actor Property PlayerREF Auto

 

There's no way to filter the activation events to only fire depending on who/what is doing the activating.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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