Difference between revisions of "Papyrus Introduction"

2 bytes added ,  05:00, 12 February 2017
m
fixed bug in script
imported>Plplecuyer
 
imported>Yeahmy
m (fixed bug in script)
 
(One intermediate revision by one other user not shown)
Line 99: Line 99:
For example, declaring at top, and setting elsewhere:
For example, declaring at top, and setting elsewhere:
<source lang="papyrus">
<source lang="papyrus">
  ;Delcared at top
  ;Declared at top
  ObjectReference ThingActivatingMe
  ObjectReference ThingActivatingMe
   
   
  ;set inside an event
  ;set inside an event
  Event OnActivate(ObjectReference akActionRef)
  Event OnActivate(ObjectReference akActionRef)
     ObjectReference = akActionRef   
     ThingActivatingMe = akActionRef   
   
   
  EndEvent
  EndEvent
Anonymous user