Page 1 of 1

Player angle?

Posted: Tue May 11, 2004 9:28 pm
by Ramah Palmer
Hi guys,

anyway to force an mp player to face a particular way?
eg. local.player.angle = 90
Or something like that?
I've got a teleport kinds thing working and I want to change the direction the player is facing when it happens to totally disorientate them.


Also:

$player[local.t] item weapons/m2frag_grenade.tik
$player[local.t] useweaponclass grenade

$player[local.t] item weapons/nebelhandgranate.tik
$player[local.t] useweaponclass grenade

Anything seem wrong with those two bits of code? I have succeeded in forcing a player to have all weapons I want except these two grenades. :?

Thanks in advance for any help you guys can give me.

try

Posted: Tue May 11, 2004 11:40 pm
by tltrude
Try this.

$parm.other.angles = ( 0 90 0)

I don't know about the weapons, or if the above line will work.

Posted: Wed May 12, 2004 7:48 am
by bdbodger
Or try $player.viewangles ( 0 90 0 ) or for multi player $player[1].viewangles ( 0 90 0 ) or parm.other.viewangles ( 0 90 0 ) as well.

Posted: Wed May 12, 2004 4:28 pm
by jv_map
local.player face (0 90 0)

Posted: Wed May 12, 2004 7:32 pm
by Ramah Palmer
Thanks guys. :)

'viewangles' is the little sucker I needed. :D

Just need to work out why it won't let me select the nades now. :(