Player angle?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Ramah Palmer
Warrant Officer
Posts: 131
Joined: Sun May 25, 2003 10:13 am
Location: Nottinghamshire: UK

Player angle?

Post 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.
Mapping is just INCREDIBLY time consuming.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

try

Post by tltrude »

Try this.

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

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

Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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.
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

local.player face (0 90 0)
Image
Ramah Palmer
Warrant Officer
Posts: 131
Joined: Sun May 25, 2003 10:13 am
Location: Nottinghamshire: UK

Post 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. :(
Mapping is just INCREDIBLY time consuming.
Post Reply