Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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?
-
Hi,
what framework are you using ( where did you get "SetWalkabilityInArea" action basically)
bye,
Jean
-
The A* add-ons by kiriri.
-
Hi,
Ok, cool, I don't have experience with it, so hopefully, Kiriri will step in.
bye,
Jean
-
So I found a different way to make this work with different (less-effective) actions. But hopefully he'll respond here.