Jump to content

Recommended Posts

Posted

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
Posted (edited)

Use on OnTranslationAlmostComplete() instead. Through extensive testing by folks in the past, it was determined that OnTranslationComplete() doesn't function properly or at all.

Edited by Rasikko
Posted

Use on OnTranslationAlmostComplete() instead. Through extensive testing by folks in the past, it was determined that OnTranslationComplete() doesn't function properly or at all.

It also doesn't work :(

  • Recently Browsing   0 members

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