View Single Post
-hi-
Member
Join Date: Jul 2006
Old 10-02-2007 , 15:39   Re: First Person View on another player help
Reply With Quote #3

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);         
}
Attached Thumbnails
Click image for larger version

Name:	2fort0000.JPG
Views:	209
Size:	22.4 KB
ID:	20595  

Last edited by -hi-; 10-02-2007 at 16:22.
-hi- is offline