Page 1 of 1
Force a player to watch a direction
Posted: Sat Nov 27, 2004 12:21 am
by agentmad007
Hi ,
is it possible to force a player watching the north , south or whatever by script at end of my thread ?
TY
Posted: Sat Nov 27, 2004 6:39 am
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.
Posted: Sat Nov 27, 2004 9:56 am
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.
Posted: Sat Nov 27, 2004 2:47 pm
by bdbodger
I think makeing the player notsolid will freeze him . You can also use face for this I belive .
Posted: Sat Nov 27, 2004 5:24 pm
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
Posted: Sat Nov 27, 2004 6:26 pm
by strafer
I tested out the viewangles script and it worked just fine for me.

Posted: Sat Nov 27, 2004 6:45 pm
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 . 
Posted: Mon Dec 13, 2004 5:26 pm
by agentmad007
thx bdbodger it work like a charm.
