Jump to content

[LE] Help with a script


Recommended Posts

I want to make a script where a cart needs to drive from the Start position to the End position and than do it again on end. Could someone halp me with this script?

Here is my version, but it doesn't work :sad:

 

Scriptname szFactory_RawsCartScript01 extends ObjectReference
auto state Drive
Event OnLoad()
self.MoveTo(StartPos)
self.TranslateToRef(EndPos, 10)
Utility.Wait(10)
EndEvent
endState
Event OnTranslationComplete()
gotoState("Drive")
EndEvent
ObjectReference Property StartPos auto
ObjectReference Property EndPos auto
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...