Frictional Games Forum (read-only)

Full Version: look at 3 places,
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Im a noob at scripting and I wanna know how to make it so It will look at 3 spots auto for the begging.Like when it starts I want it to look at thos 3 spots slowly and make him close his eyes then open is it possible?
What you can do is set up 3 areas or objects in the room you want him to look at, then use the function:

StartPlayerLookAt(string& asEntityName, float afSpeedMul, float afMaxSpeed, string &asAtTargetCallback);

Then use timers to make it go to the next one, and repeat.
If you want a 'blink' or 'closing eyes' effect, try FadeOut() then a FadeIn() with fairly short durations. Check out the wiki for the list of functions.
Mixing that in with an image trail or radial blur effect might work well too.