Skip to content

How to set the messages before the simulation begins? #1128

Answered by Robadob
jthrelfall777 asked this question in Q&A
Discussion options

You must be logged in to vote

It's not currently possible to initialise messages from the host, they can only be output by agents and we don't currently have on-device/agent initialisation functions (#329) where you could create such messages.

To emulate this behaviour you could create your agents in an initial state "init", which only runs for one agent function whereby these initial messages are output. The same function should also transition the agents from "init" state to some other state e.g. "ready", which all the other agent functions have as their begin/end state.

The user guide's coverage for this flow is currently lacking (I will try to find time to address this today FLAMEGPU/FLAMEGPU2-docs#169).

Some rele…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jthrelfall777
Comment options

You must be logged in to vote
3 replies
@Robadob
Comment options

@jthrelfall777
Comment options

@Robadob
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants