Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Need help writeing a script
BirdMan1988 Offline
Junior Member

Posts: 5
Threads: 3
Joined: Aug 2012
Reputation: 0
#1
Need help writeing a script

i have posted once befor , but did not get the awnser i was looking for =( so i must re word it ..



im trying to write a script for a scare event ... i have it were u walk
thru the door to a certain area script and it slams shut , but i would
like for the player to look back at the door when the door slams.



now i am hoping that someone know how to script this and eny help would be most geratefull
(This post was last modified: 08-31-2012, 02:40 AM by BirdMan1988.)
08-29-2012, 08:31 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: want to know how to move player camra

StartPlayerLookAt. Search at
http://wiki.frictionalgames.com/hpl2/amn..._functions

Trying is the first step to success.
08-29-2012, 09:09 PM
Find
BirdMan1988 Offline
Junior Member

Posts: 5
Threads: 3
Joined: Aug 2012
Reputation: 0
#3
RE: want to know how to move player camra

(08-29-2012, 09:09 PM)beecake Wrote: StartPlayerLookAt. Search at
http://wiki.frictionalgames.com/hpl2/amn..._functions
i know about the function script just wondering how to script it , eny thoughts?
08-29-2012, 10:07 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: want to know how to move player camra

Make door collide with script area (When it slams).
Make a callback that makes StartPlayerLookAt the door.
Add a timer that makes a callback that StopPlayerLookAt

Trying is the first step to success.
08-30-2012, 06:31 AM
Find




Users browsing this thread: 1 Guest(s)