Using actor from ActorComponent
by Do Not Delete · in Torque X Platformer Kit · 10/23/2007 (8:27 pm) · 1 replies
I'm modifying PlayerController.cs and would like to use the actor from ActorComponenet.
For example I want to be able to do something like this:
I have declared actor at the top like this:
But I have an exception that says:
Object Reference not set to an instance of an object.
What can I do to fix this problem?
For example I want to be able to do something like this:
actor.Reset();
I have declared actor at the top like this:
ActorComponent actor;
But I have an exception that says:
Object Reference not set to an instance of an object.
What can I do to fix this problem?
About the author
Torque Owner Vishal Bhanderi