Code: Select all
class camera
{
private:
float x,y,z;
bool active;
public:
void Init(float t, float i, float u, bool a)
{
x = t;
y = i;
z = u;
active = a;
}
void Activate()
{
active = true;
while(active)
{
setActiveCamera(camera);
}
}
};
Basically, this is supposed to be a camera I can add to the map, and when activated, the player will be forced to view through said instance of camera. Well, thing is, it won't let me call setActiveCamera, because it "wasn't defined in this scope". Any solutions would be greatly appreciated.
Thanks.
-FlyingSauce