Reply To: Communication via Blackboard or Events

Forums 💬 NodeCanvas 🗨️ General Discussion Communication via Blackboard or Events Reply To: Communication via Blackboard or Events

#14923
bbdata
Participant

    Hey Gavalakis,
    thanks for your explanations! I got a bit clearer now, but there are still some obstacles.
    The Code for SetDataValue is really nice and simple, but using exactly this I got an:

    Assets/02-Scripts/DroneCtrl.cs(34,33): error CS1525: Unexpected symbol `<internal>’

    I don’t know what this error means, there is no <internal>, googling CS1525 brought hints for weird Symbols……
    aaaah ok! Retyping the whole line, and the error vanished 🙂 first success!
    -> Blackboard SetDataValue seems to work finally.

    I’ve also tested the other ways with checkProperty/checkGameObject, since they would be the easiest solution without the need of events.
    1. CheckProperty – can’t use this like in your example, the targetObject is dynamically saved in Blackboard ‘nearestTarget’, so I get ‘this Condition needs the Agent to be known…’, see screenshot.

    2. Blackboard Check GameObject doesn’t do the job, because my Blackboard variable ‘nearestTarget’ does not reflect, if the referenced target gameObject is set active or not, and active/inactive seems to be the only status I get back from my target with DamageHandler-Script without using extra events.

    So I’m a few steps nearer but not done now.