playMaker

Author Topic: Missing Action (Agent Stop) [SOLVED]  (Read 735 times)

Flosse

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Missing Action (Agent Stop) [SOLVED]
« on: November 27, 2017, 01:59:45 PM »
Hello Guys,
I want to make an enemy, when he see me (Raycast) he should follow me.
If he don't see me he should stop following me.
But the AgentStop-Action is missing.

I downloaded the Pathfinding AddOn from the Ecosytem and he downloaded everything, the AgentStop Script is there too, but he dont compile it to the AgentStop-Action
I tried to reload this and the Ecosystem writes "Unity is Compiling" but it doesen't work.
There is still no Agent Stop
Other Actions from the Pathfinding AddOn are missing too, but I don't need them until now.

I hope you can help me
Thank you a lot
« Last Edit: November 28, 2017, 08:47:54 AM by Flosse »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4019
    • View Profile
    • jinxtergames
Re: Missing Action (Agent Stop)
« Reply #1 on: November 27, 2017, 05:36:04 PM »
Hi,
I checked and confirmed that there is an issue on some of those actions.

There is a obsolete issue and the actions need to be updated. and unity disables them on install (tested on unity 2017.2)

i don't have access to edit the actions, so i will contact jean.
But i did make a custom action which you can use to stop and resume the agent (with a bool)
You can get it below in the attachment. i also added a every frame and a reset on exit.

I did not have really time to test (1.30am and have to work @ 7 am)
can you test if it works? and let me know.
Also can you let me know what other actions are missing?

Flosse

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Missing Action (Agent Stop)
« Reply #2 on: November 28, 2017, 12:52:24 AM »
Hello djaydino,
Thank you soo much
It works perfectly!

Other missing actions:
Agent Resume,
GetAgentLayerCost,
GetAgentWalkableMask

I think I've got all
Thank you a lot again

Florian

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 586
    • View Profile
    • Car and Traffic Playmaker assets
Re: Missing Action (Agent Stop)
« Reply #3 on: November 28, 2017, 02:04:35 AM »
There are different Pathfinding packages for each Unity version, in the newest there is no Stop Agent, but instead Set Agent Is Stopped, so you set true to stop and false to resume.
Packages here:
https://hutonggames.fogbugz.com/default.asp?W1174

Flosse

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Missing Action (Agent Stop)
« Reply #4 on: November 28, 2017, 08:44:48 AM »
Hello 600,
So this is an action like djaydino made?

I tried it and it works too.

Thank you a lot

Florian

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4019
    • View Profile
    • jinxtergames
Re: Missing Action (Agent Stop) [SOLVED]
« Reply #5 on: November 28, 2017, 10:39:48 AM »
Hi,
Thx 600 i didn't know there where different version.

I do think each version should be on the Ecosystem :)