I'm working on a behavior, and I am invoking
this.runtime.trigger(cr.behaviors.RPGChar.prototype.cnds.Damaged, this);[/code:499z4zop] In the hopes of running an event whenever a character takes damage. However, when I shoot a character, I get an error on line 4421 of preview.js, and it seems to be about families. I couldn't figure out how to run a stacktrace, but I had my behavior spit out this.type and sure enough, this.type.families was undefined. It seems odd to me that triggering a condition in a behavior should expect to find a family. My understanding from reading the manual is that families only apply to plugins/objects, not behaviors. Am I using runtime.trigger incorrectly?
Please help. I feel like I've done enough detective work, and i need someone with understanding.
Develop games in your browser. Powerful, performant & highly capable.
Awesome! Thank you!