Page 1 of 1
Turning player this way and that!
Posted: Sun May 01, 2005 10:32 am
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!
Posted: Sun May 01, 2005 11:52 am
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.
Posted: Sun May 01, 2005 2:50 pm
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)