Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Player camera facing down...

  1. #1
    Private
    Join Date
    Aug 2012
    Posts
    78
    Thanks
    20
    Thanked 10 Times in 5 Posts

    Player camera facing down...

    Hey, I would like to make a rocket that flies down.
    The thing is that I want to address in this way the player or his head like in this screenshot:


    Click image for larger version. 

Name:	player.jpg 
Views:	53 
Size:	29.3 KB 
ID:	622
    Last edited by kung foo man; 28th January 2014 at 18:51. Reason: Uploaded pic as attachment, sinces freehosters are unreliable and full of ad

  2. #2
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Moved to appropriate forum.

    Next time, please pick the forum you want to create a thread in more carefully.

  3. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    I don't really understand what you need atm, can you describe the problem more?

    Do you have already some code with the missing piece of code? Would help to understand the question
    timescale 0.01

  4. #4
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    set view:
    while( 1337 )
    player setPlayerAngles( vectorToAngles( 0 , 0 , -1 ) );

    but you cannot change the models orientation without a new animstate (almost impossible)

  5. #5
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    I think he want to make a bomb like MW2. U shoot a rocket from a plane and u can move it while going down. You cant go back to the air again, you always go to the ground

  6. #6
    Private
    Join Date
    Aug 2012
    Posts
    78
    Thanks
    20
    Thanked 10 Times in 5 Posts
    Ni3ls, exactly it I had in mind
    self setplayerangles(vectortoangles(0,0,-1)); is not work's, i see this error:

    Code:
    ******* script runtime error *******
    type int is not a vector: (file 'files/itemsystem/_rocketlandair.gsc', line 11)
    self setplayerangles(vectortoangles(0,0,-1));
    *

  7. #7
    Private
    Join Date
    May 2013
    Posts
    27
    Thanks
    0
    Thanked 19 Times in 11 Posts
    self setplayerangles(vectortoangles( (0,0,-1) ));

  8. #8
    Private
    Join Date
    Aug 2012
    Posts
    78
    Thanks
    20
    Thanked 10 Times in 5 Posts
    This is the same PatmanSan...
    His error: type int is not a vector

  9. #9
    Private
    Join Date
    Aug 2012
    Posts
    78
    Thanks
    20
    Thanked 10 Times in 5 Posts
    aaa (()) ok, thanks PatmanSan

  10. #10
    Private
    Join Date
    May 2013
    Posts
    27
    Thanks
    0
    Thanked 19 Times in 11 Posts
    BTW: you can set the player's angles to face down without the need for vectortoangles:

    self setplayerangles( (90,0,0) );

    Same thing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •