Force a player to watch a direction

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Force a player to watch a direction

Post by agentmad007 »

Hi ,

is it possible to force a player watching the north , south or whatever by script at end of my thread ?

TY
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post by strafer »

I have no idea if there is a specific script for this, but what I would try is something like this:

Code: Select all

local.triglook = spawn trigger_multiple
local.triglook.origin = ( xxx xxx xxx)
local.triglook setsize ( -xxx -xxx -xxx )
local.triglook setthread look

look:

local.player = parm.other
local.player tele local.player.origin ( 0 90 0)

end
I believe that is how you write the tele script, but I'm not entirely sure.
That should make them look in a certain direction whenever they land on a certain spot. Hope this helps.
Image
Phil {sfx}
Sergeant
Posts: 67
Joined: Thu Sep 30, 2004 2:08 pm
Location: uk
Contact:

Post by Phil {sfx} »

you can use,

Code: Select all

local.player.viewangles = ( 0 0 0 )  /*set to what angles you want*/
The player will still beable to move there view after its changed, not sure on how you would freeze the view once its changed.
Senior Modder/Mapper/Scripter/Modeller @ www.mods-r-us.net
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

I think makeing the player notsolid will freeze him . You can also use face for this I belive .
Image
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

thx for your replies .
local.player.viewangles = ( 0 0 0 ) /*set to what angles you want*/
I think thats what i want .Just to set the teleported player view right in front.Thx i will try when compile will be finished.
I think makeing the player notsolid will freeze him . You can also use face for this I belive
Bdbodger what do you mean by "face" is it a command script ? never heard that , can you gimme some details plz ?

Thanks
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post by strafer »

I tested out the viewangles script and it worked just fine for me. :wink:
Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Face is about the same as viewangles

face( Vector angles )


Force angles to specified vector

$player face ( 0 30 0 )

something like that I don't use it much just thought I's mention it I don't know why . :?
Image
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

thx bdbodger it work like a charm. :D
Deadly and slient.
Post Reply