Difference between revisions of "Complete Example Scripts"

Jump to navigation Jump to search
3 bytes added ,  23:03, 5 October 2012
m
→‎Move an Object to a Specific Location Without Fade: 500 Δ 500.0 given afSpeed is a float (unnecessary auto-cast)
imported>JustinOther
imported>JustinOther
m (→‎Move an Object to a Specific Location Without Fade: 500 Δ 500.0 given afSpeed is a float (unnecessary auto-cast))
Line 211: Line 211:
Event OnTriggerEnter(ObjectReference akActionRef)
Event OnTriggerEnter(ObjectReference akActionRef)
If akActionRef == PlayerREF
If akActionRef == PlayerREF
akActionRef.TranslateToRef(kDest,500) ; 500 is the speed value, it's pretty fast
akActionRef.TranslateToRef(kDest, 500.0) ; 500 is the speed value, it's pretty fast
EndIf
EndIf
EndEvent </source>
EndEvent </source>
Anonymous user

Navigation menu