- Home /
Question by
Tuor56 · Dec 21, 2012 at 12:52 AM ·
javascripterrordialogue
Dialogue Code
For the dialogue code you gave me it came up with an error. The error reads "The name "Dialogue Instance" does not denote a valid type. ('not found'). I don't understand the issue. Here is my code that i have incase i made a mistake.
var Dialogue : DialogueInstance; var endOnExit : boolean = true; function OnTriggerEnter( collider1 : Collider ) { if ( collider1.name == "Player" ) dialogue.enabled = true; }
function OnTriggerExit( collider1 : Collider ) { if ( collider1.name == "Player" && endOnExit) dialogue.enabled = false; }
Comment