Jump to content

Adding my own states


Matenia
 Share

Recommended Posts

Hey @Droidz

through my plugin, I want to add some states of my own (mostly for custom training etc).
Unfortunately, when doing this OnEngineStart event, I always get:
 

[E] 13:50:08 - Engine > Pulse(): System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Collections.Generic.List`1.Enumerator.MoveNext()
   at robotManager.FiniteStateMachine.Engine.Pulse()

which makes sense. Is there any way to add my own states, currently? I couldn't find any event that fires before EngineStart and I am sure I'm not modifying the collection DURING Pulse on another thread.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...