YouDoNotKnowMyName Posted May 19, 2021 Share Posted May 19, 2021 Good evening everybody! Is there a limit on the number of properties that a script can have? Because I want to move something from one x marker to another, to another, ..... across half of my custom worldspace.Basically what I am trying to create is a moving train.So I would need a few hundret properties (the X markers) for the script that moves the train. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted May 19, 2021 Share Posted May 19, 2021 I don't think there is a limit, but you might want to consider putting them in an ObjectReference array. That way you can set up a while loop and use the index value to travel from the current marker to the next marker (forward or back) in the line. Link to comment Share on other sites More sharing options...
DieFeM Posted May 20, 2021 Share Posted May 20, 2021 I would suggest linking the markers in a chain, and use getLinkedRef to get the next marker reference at OnTranslationAlmostComplete, or GetLinkedRefChain at the beginning and then take the next marker reference by increasing the index of the returned array of references (also at OnTranslationAlmostComplete). Using GetLinkedRefChain at the beginning you know where exactly your object is by the index. Link to comment Share on other sites More sharing options...
Recommended Posts