playMaker

Author Topic: Set Enemy/npc (or player) Fov 3d or 2d  (Read 27439 times)

stephenscottday

  • Beta Group
  • Playmaker Newbie
  • *
  • Posts: 4
Re: Set Enemy/npc (or player) Fov 3d or 2d
« Reply #45 on: July 31, 2020, 04:09:32 PM »
Anyone having a little trouble figuring out how to use the Dynamic Vision Cone action in 2020, I made this video which covers the basics of setting it up:

Also, dudebxl you're the absolute best for making this. Playmaker really benefits from such thoroughly built actions, especially ones addressing the everyday needs of it's users. BIGGGGG KUDOS!


Gua

  • Beta Group
  • Sr. Member
  • *
  • Posts: 309
    • Andrii Vintsevych
Re: Set Enemy/npc (or player) Fov 3d or 2d
« Reply #46 on: January 21, 2021, 03:05:15 PM »
When I use it on my camera. Why is it pointing in such a random angle?



While on cube it works normally. Pointing toward Z axis


For some reason it creates cone with this rotation

Gua

  • Beta Group
  • Sr. Member
  • *
  • Posts: 309
    • Andrii Vintsevych
Re: Set Enemy/npc (or player) Fov 3d or 2d
« Reply #47 on: January 21, 2021, 03:10:02 PM »
Maybe this will bite me in the future. But adding this line to the script solved my issue.


Gua

  • Beta Group
  • Sr. Member
  • *
  • Posts: 309
    • Andrii Vintsevych
Re: Set Enemy/npc (or player) Fov 3d or 2d
« Reply #48 on: January 21, 2021, 04:17:35 PM »
Unfortunately Filter by tag option creates this error

NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMaker.Actions.DynamicVisionConeFov.CastRays () (at Assets/PlayMaker Custom Actions/FOV/DynamicVisionConeFov.cs:234)
HutongGames.PlayMaker.Actions.DynamicVisionConeFov.OnLateUpdate () (at Assets/PlayMaker Custom Actions/FOV/DynamicVisionConeFov.cs:194)
HutongGames.PlayMaker.FsmState.OnLateUpdate () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:301)
HutongGames.PlayMaker.Fsm.LateUpdateState (HutongGames.PlayMaker.FsmState state) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:3077)
HutongGames.PlayMaker.Fsm.LateUpdate () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2314)
PlayMakerLateUpdate.LateUpdate () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerLateUpdate.cs:21)