felix
New vMember
Posts: 4
|
Post by felix on Jun 28, 2020 14:20:30 GMT
Hello, I have a Problem with invector and playmaker integration. I want to send a fsm on a certain event, like spawning an object on the death of an invector melee AI agent. However to access the fsm in the simple melee AIs Events Panel it must be attached to my AI agent in general, wich causes of cause that the fsm is triggered immeadeadly and not only on the death of the AI. Im pretty new with unity and checked the internet for weeks now, whatched several tutorials but still never managed to deal with that specific issue. Does anyone know a solution for that? Best regards and have a great day you all
|
|
|
Post by Devistute on Jun 28, 2020 16:07:28 GMT
Add the FSM as empty gameobject under the AI character, then create two states to it and call the first "Idle" and the second "Action". Dont add any events to the idle one, only to the action one. Connect the states. Then drag the fsm gameobject to AI's "On Death" slot and under playmaker select "Sent Event" and next to it write "Action".
Hope this helps.
|
|
felix
New vMember
Posts: 4
|
Post by felix on Jun 29, 2020 16:19:30 GMT
Thats exactly the solution in my case i even did that but used the finished event instead of a custom one, that caused the instant trigger. Thanks alot for the support and if anyone ever stumbles across that thread i'll attach a screenshot of my misstake: in the "deactivated" state i should have used an event thats called "activate_experience" instead of "finished" so that playmaker can refer to that (02 + 03.1)
|
|