Raised This Month: $ Target: $400
 0% 

First Person View on another player help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
-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:	212
Size:	22.4 KB
ID:	20595  

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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode