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
What is the script for making the player look a spefici place?
Hartmann Offline
Member

Posts: 52
Threads: 18
Joined: Jun 2012
Reputation: 0
#8
RE: What is the script for making the player look a spefici place?

(06-22-2012, 05:41 PM)FastHunteR Wrote: AddTimer(mansion_5, 3, LookAtDoor);
mansion_5 must be in brackets:"mansion_5", and LookAtDoor too.
or better: name it something different, as that name is not really great as a stopplayerlookat function.
so change it to this:AddTimer("StopLook", 3, "LookAtDoor");
second problem: you're missing the LookAtDoor function. Add to the very bottom, outside of any function:
void LookAtDoor(string &in asTimer)
{
StopPlayerLookAt();
}
Now the third problem:
PlaySoundAtEntity("", "unlock_door", "mansion_5", 0.0f, true);
the sound needs its extension, or else it won't work. replace all of those functions with this:
PlaySoundAtEntity("", "unlock_door.snt", "mansion_5", 0.0f, true);
That's it. after this, it should work.
However, you can do great at decreasing the length of this script, by putting all UnlockDoor functions into a single one. But since you're unexperienced, you should stay by that at first.
cant u write the whole HPS for me Smile?
06-22-2012, 08:49 PM
Find


Messages In This Thread
RE: What is the script for making the player look a spefici place? - by Hartmann - 06-22-2012, 08:49 PM



Users browsing this thread: 2 Guest(s)