Turning player this way and that!

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
LtNeil
Sergeant
Posts: 54
Joined: Sun Nov 14, 2004 8:46 pm
Location: southend on sea
Contact:

Turning player this way and that!

Post by LtNeil »

I have an objective that has a tank exploding through a wall but i would like the player to be turned towards this (180 degrees)when he hits a trigger multiple,is there a nice easy way to do this?

Thanks fir any help!
My candle burns at both ends it will not last the night but oh my foes and oh my friends it gives a lovely light.
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

turn ( Float yawangle )

Causes player to turn the specified amount.

or turnlegs


buttt, it might not work, u cant guarentee the player will be looking at it after turned that ammount.

soo.

my sugestion is to use a func camera? it would look alot nicer.

or for turning. Get the angles pointing at the wall thingy and make the players viewangles match them.
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Let's assume $wall is the wall and local.player is the player.

Code: Select all

local.player face (angles_pointat local.player local.player $wall)
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Post Reply