Difference between revisions of "Complete Example Scripts"
Jump to navigation
Jump to search
m
→Move an Object to a Specific Location Without Fade: 500 Δ 500.0 given afSpeed is a float (unnecessary auto-cast)
imported>JustinOther m (→Cycle Through a List of Objects and Perform an Action on Each Object(FormLists): Defined kReference and iIndex in event body) |
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> |