Complete Example Scripts: Difference between revisions
Jump to navigation
Jump to search
m
→Move an Object to a Specific Location Without Fade: GetPlayer swapped for PlayerREF
imported>JustinOther m (→Cycle Through a List of Objects and Perform an Action on Each Object(Linked Ref Chain): GetPlayer swapped with PlayerREF property for consistency) |
imported>JustinOther m (→Move an Object to a Specific Location Without Fade: GetPlayer swapped for PlayerREF) |
||
| Line 208: | Line 208: | ||
<source lang="papyrus">ScriptName MoveObjExample extends ObjectReference | <source lang="papyrus">ScriptName MoveObjExample extends ObjectReference | ||
ObjectReference | Actor Property PlayerREF Auto | ||
ObjectReference Property kDest Auto | |||
Event OnTriggerEnter(ObjectReference akActionRef) | Event OnTriggerEnter(ObjectReference akActionRef) | ||
If akActionRef == PlayerREF | |||
akActionRef.TranslateToRef( | akActionRef.TranslateToRef(kDest,500) ; 500 is the speed value, it's pretty fast | ||
EndIf | |||
EndEvent </source> | EndEvent </source> | ||