Hartmann
Member
Posts: 52
Threads: 18
Joined: Jun 2012
Reputation:
0
|
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 ?
|
|
06-22-2012, 08:49 PM |
|