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
Questions
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#8
RE: UNEXPECTED ERROR

(06-06-2014, 04:17 PM)SomethingRidiculous Wrote:
PHP Code: (Select All)
void onstart () //should be void OnStart()...//
{
     
AddEntityCollideCallback("Player""Teleport""jumpscare"true1);
}

void jumpscare (string &in asParentsstring &in asChildint alstates); //It's asParent, asChild and int alState). No semicolon in callback syntax, that's for functions only//
{
     
SetEntityActive("jumpscare1"true);
     
AddPropForce("jumpscare1", -1000000"world");
     
PlaySoundAtEntity("""24_iron_maiden.snt""jumpscare1"0false);


EDIT:
The object jumpscare1 should be applied the force depending on where you are. It's not always on the X coordinate. The Z coordinate is possible.

i don't understand ?! on youtube they talked about x and z cordinate but i didn't understand that so i did what the youtuber did...
06-06-2014, 04:23 PM
Find


Messages In This Thread
UNEXPECTED ERROR - by Amnesiaplayer - 06-06-2014, 02:44 PM
RE: UNEXPECTED ERROR - by DnALANGE - 06-06-2014, 03:02 PM
RE: UNEXPECTED ERROR - by Amnesiaplayer - 06-06-2014, 03:29 PM
RE: UNEXPECTED ERROR - by Neelke - 06-06-2014, 04:01 PM
RE: UNEXPECTED ERROR - by Amnesiaplayer - 06-06-2014, 04:16 PM
RE: UNEXPECTED ERROR - by Mudbill - 06-06-2014, 04:08 PM
RE: UNEXPECTED ERROR - by PutraenusAlivius - 06-06-2014, 04:17 PM
RE: UNEXPECTED ERROR - by Amnesiaplayer - 06-06-2014, 04:23 PM
RE: UNEXPECTED ERROR - by Romulator - 06-06-2014, 04:43 PM
RE: UNEXPECTED ERROR - by Amnesiaplayer - 06-06-2014, 04:56 PM
RE: UNEXPECTED ERROR - by Romulator - 06-06-2014, 05:11 PM
RE: UNEXPECTED ERROR - by Amnesiaplayer - 06-06-2014, 05:13 PM
RE: UNEXPECTED ERROR - by Mudbill - 06-06-2014, 05:12 PM
RE: UNEXPECTED ERROR - by Romulator - 06-06-2014, 05:16 PM
RE: UNEXPECTED ERROR - by Amnesiaplayer - 06-06-2014, 05:22 PM
RE: UNEXPECTED ERROR - by Romulator - 06-06-2014, 05:24 PM
RE: UNEXPECTED ERROR - by Amnesiaplayer - 06-06-2014, 05:26 PM
RE: UNEXPECTED ERROR - by Romulator - 06-06-2014, 05:31 PM
RE: UNEXPECTED ERROR - by Amnesiaplayer - 06-06-2014, 05:37 PM
RE: UNEXPECTED ERROR - by Neelke - 06-06-2014, 05:42 PM
RE: UNEXPECTED ERROR - by Amnesiaplayer - 06-06-2014, 05:44 PM
RE: UNEXPECTED ERROR - by Romulator - 06-06-2014, 05:44 PM
RE: UNEXPECTED ERROR - by Mudbill - 06-06-2014, 06:07 PM
RE: UNEXPECTED ERROR - by Amnesiaplayer - 06-06-2014, 06:13 PM
RE: UNEXPECTED ERROR - by Mudbill - 06-06-2014, 06:14 PM
RE: UNEXPECTED ERROR - by Amnesiaplayer - 06-06-2014, 06:18 PM
RE: UNEXPECTED ERROR - by Mudbill - 06-06-2014, 06:20 PM
RE: UNEXPECTED ERROR - by Amnesiaplayer - 06-06-2014, 06:24 PM
RE: Questions - by plutomaniac - 06-07-2014, 10:31 PM
Unlocking door Error... - by Amnesiaplayer - 06-07-2014, 11:33 AM
RE: Unlocking door Error... - by Romulator - 06-07-2014, 11:46 AM
RE: Unlocking door Error... - by Amnesiaplayer - 06-07-2014, 11:49 AM
(picking key) *steve comes* - by Amnesiaplayer - 06-07-2014, 12:32 PM
RE: (picking key) *steve comes* - by DnALANGE - 06-07-2014, 12:37 PM
RE: (picking key) *steve comes* - by Romulator - 06-07-2014, 12:44 PM
RE: Unlocking door Error... - by DnALANGE - 06-07-2014, 12:45 PM
RE: (picking key) *steve comes* - by DnALANGE - 06-07-2014, 12:48 PM
RE: Unlocking door Error... - by Amnesiaplayer - 06-07-2014, 01:21 PM
Where ?! - by Amnesiaplayer - 06-07-2014, 02:59 PM
OnLeave() where to locate - by Amnesiaplayer - 06-07-2014, 03:45 PM
RE: OnLeave() where to locate - by Romulator - 06-07-2014, 03:48 PM
RE: OnLeave() where to locate - by Amnesiaplayer - 06-07-2014, 03:54 PM
RE: OnLeave() where to locate - by Romulator - 06-07-2014, 03:59 PM
RE: OnLeave() where to locate - by Amnesiaplayer - 06-07-2014, 04:07 PM
RE: (picking key) *steve comes* - by DnALANGE - 06-07-2014, 04:12 PM
RE: Where ?! - by PutraenusAlivius - 06-07-2014, 05:11 PM
RE: Where ?! - by Straxedix - 06-07-2014, 09:13 PM
RE: OnLeave() where to locate - by Straxedix - 06-07-2014, 09:36 PM



Users browsing this thread: 2 Guest(s)