I used the following to set the aiment, but I can still see the model of the player I'm following:
Code:
if (target) {
new cam;
cam = create_entity("info_target");
entity_set_model(cam, "models/bomblet.mdl");
entity_set_edict(cam, EV_ENT_aiment, target);
g_cameras[target] = cam;
attach_view(id, cam);
}
See the attached screenshot for what this looks like.
I used EntityState in the following manner and it crashes the game:
Code:
if (target) {
new cam;
cam = create_entity("info_target");
entity_set_model(cam, "models/bomblet.mdl");
//entity_set_edict(cam, EV_ENT_aiment, target);
set_es(cam, ES_AimEnt, target);
g_cameras[target] = cam;
attach_view(id, cam);
}