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
HELP please
G510s Offline
Banned

Posts: 58
Threads: 32
Joined: Jun 2014
#1
HELP please

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.
07-09-2014, 09:11 AM
Find Reply
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#2
RE: HELP please

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.

07-09-2014, 05:24 PM
Find Reply
Mudbill Offline
Muderator

Posts: 3,833
Threads: 59
Joined: Apr 2013
Reputation: 177
#3
RE: HELP please

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: (Select All)
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.

07-09-2014, 05:33 PM
Find Reply




Users browsing this thread: 1 Guest(s)