Jump to content

Trigger a state with another state


younglegend

Recommended Posts

Hello ppl. I'm still messing with my new interest on crowds and got stuck in a situation.

So i have 10-15 agents in 'idle' state and among them 3 random agents change their state to 'headshot' ( I'm using pop groups set to random). Now i want the rest of the agents to change their state to 'scared' soon after 'headshot' state is triggered. Here's what i've tried..

1. Made a group/attribute when the headshot state is triggered and use that on the crowd trigger vex. Did not work...

i@trigger = 0;
if (@group_groupname or attribute == 1){
i@trigger = 1;
}

2. Used the state trigger expression directly on crowd trigger. Nope.

i@trigger = 0;
if (s@state == "headshot"){
i@trigger = 1;
}

The only expression that works is with @Frame. I have to manually find the frame where the agent get triggered to the 'headshot' state and enter it. Moreover my next step is to trigger the 'scared' state by radius/proximity.

Any help or ideas is appreciated. Thanks!

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.
Note: Your post will require moderator approval before it will be visible.

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.

×
×
  • Create New...