Console Not Working!


(Ethan Smythe) #1

Hey guys

Just having a abit of trouble acessing the console. i am using “FP.console.enable();” as the script but when i go to run the game it gives me this error in the output: [Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference.

if you know why please reply asap!

Regards Ethan.


(Draknek) #2

You’re probably trying to enable it in the engine’s constructor, before calling super()?

Put that code at the end of the constructor on in init() and it should work.


(Ethan Smythe) #3

worked! :slight_smile: thanks very much