playMaker

Author Topic: Using A* Set Walkability Action  (Read 1877 times)

mweyna

  • Full Member
  • ***
  • Posts: 242
Using A* Set Walkability Action
« on: January 05, 2014, 08:12:46 PM »
So in my project I have a door that I want only Allied Units to open. If an enemy gets near it, then it will not open. For my unit movement I am using A* so theres that grid running on everything with Walkability.

Now I've tried using "SetWalkability" the Add-on Action but it tends to just return the error -
"NullReferenceException
HutongGames.PlayMaker.Actions.SetWalkabilityInArea.OnEnter () (at Assets/Plugins/FsmPathfindingWrappers/FsmPathfindingC/SetWalkabilityInArea.cs:45)"

On my actual Door Object, I have the four states (Open, Openning, Closed, Closing) each with different Walkability settings. What about my setup is incorrect that I'm returning this error and not actually updating the A* pathing grid underneath?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Using A* Set Walkability Action
« Reply #1 on: January 06, 2014, 08:44:04 AM »
Hi,

 what framework are you using ( where did you get "SetWalkabilityInArea" action basically)

bye,

 Jean

mweyna

  • Full Member
  • ***
  • Posts: 242
Re: Using A* Set Walkability Action
« Reply #2 on: January 06, 2014, 11:30:24 AM »
The A* add-ons by kiriri.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Using A* Set Walkability Action
« Reply #3 on: January 07, 2014, 04:28:41 AM »
Hi,

 Ok, cool, I don't have experience with it, so hopefully, Kiriri will step in.

bye,

 Jean

mweyna

  • Full Member
  • ***
  • Posts: 242
Re: Using A* Set Walkability Action
« Reply #4 on: January 07, 2014, 04:14:02 PM »
So I found a different way to make this work with different (less-effective) actions. But hopefully he'll respond here.