Jump to content

Is there a limit for number of script properties?


Recommended Posts

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

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

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

  • Recently Browsing   0 members

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