OnTrapHitStart - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
imported>Jlundin
No edit summary
 
m (Convert source tags to syntaxhighlight)
 
Line 7: Line 7:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Event OnTrapHitStart(ObjectReference akTarget, float afXVel, float afYVel, float afZVel, float afXPos, float afYPos, \
Event OnTrapHitStart(ObjectReference akTarget, float afXVel, float afYVel, float afZVel, float afXPos, float afYPos, \
     float afZPos, int aeMaterial, bool abInitialHit, int aeMotionType)
     float afZPos, int aeMaterial, bool abInitialHit, int aeMotionType)
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 26: Line 26:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Event OnTrapHitStart(ObjectReference akTarget, float afXVel, float afYVel, float afZVel, float afXPos, float afYPos, \
Event OnTrapHitStart(ObjectReference akTarget, float afXVel, float afYVel, float afZVel, float afXPos, float afYPos, \
     float afZPos, int aeMaterial, bool abInitialHit, int aeMotionType)
     float afZPos, int aeMaterial, bool abInitialHit, int aeMotionType)
   Debug.Trace("Ouch! We just started hitting " + akTarget)
   Debug.Trace("Ouch! We just started hitting " + akTarget)
endEvent
endEvent
</source>
</syntaxhighlight>


== See Also ==
== See Also ==

Navigation menu