Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: mweyna on January 05, 2014, 08:12:46 PM

Title: Using A* Set Walkability Action
Post by: mweyna 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?
Title: Re: Using A* Set Walkability Action
Post by: jeanfabre on January 06, 2014, 08:44:04 AM
Hi,

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

bye,

 Jean
Title: Re: Using A* Set Walkability Action
Post by: mweyna on January 06, 2014, 11:30:24 AM
The A* add-ons by kiriri.
Title: Re: Using A* Set Walkability Action
Post by: jeanfabre 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
Title: Re: Using A* Set Walkability Action
Post by: mweyna 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.