Frictional Games Forum (read-only)

Full Version: HELP please
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i am trying to figure out how to make it to were you spawn into the game waking up...and when i pick up a note diff music will play or my player will turn around after i exit the note.
It's all code. You start by making the screen black with FadeOut function.
You force the player to crouch with SetPlayerCrouching( true ); and so on.
I'd recommend you to read the wiki, there are some articles about that and are well explained.
You also may want to add this to bookmarks.
Add a callback to the note by going on the entity tab in the level editor, then writing a name in the CallbackFunc section.

In your script, whatever you want to happen you just put inside that callback.

PHP Code:
void FunctionName(string &in asEntityint Type)
{
    
ScriptHere();


For example music, usually you can add that just to the note itself. If you want the player to turn, you can put it in here though. Use the script called StartPlayerLookAt.