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:
Attachment 622
Printable View
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:
Attachment 622
Moved to appropriate forum.
Next time, please pick the forum you want to create a thread in more carefully.
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 :D
set view:
while( 1337 )
player setPlayerAngles( vectorToAngles( 0 , 0 , -1 ) );
but you cannot change the models orientation without a new animstate (almost impossible)
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
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));
*
self setplayerangles(vectortoangles( (0,0,-1) ));
This is the same PatmanSan...
His error: type int is not a vector
aaa (()) ok, thanks PatmanSan ;)
BTW: you can set the player's angles to face down without the need for vectortoangles:
self setplayerangles( (90,0,0) );
Same thing.
Not of really what I meant, because this:
self setplayerangles(vectortoangles( (0,0,-1) ));
This is same what this:
self setplayerangles((90,0,0));
I mean the camera orientation player, but you serthy say me that is not impossible... hm, ok thaks evryone.
sry, missed the braces
yh, i said that its almost impossible to orient the playermodel upside down, but is it that what you want?
for a MW2 styled predator rocket just do that what patmansan wrote and move your rocket in the players facing direction. for that you hide the players body anyway
Yes, I would like to change the player orientation in script as pictured in radiant.
I know I could do so as he wrote PatmanSan but i would like to see how looks to change orientation player :P
Let the player face the way u want, like Pat said.
Hide body
Spawn a tag_origin in front of him and link him to that
Let the tag_origin move to where you are looking.
But convert the way you are looking to 0.05*x, 0.05*y, 0.05*z so you will be still facing downwards and can move a little bit.
If attackbutton is pressed, do more speed
If you are close enough to the ground explode
Ok, thanks everyone for help me :)