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
Scripting help !!! :E
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#6
RE: Scripting help !!! :E

void OnStart()
{
SetEntityPlayerInteractCallback("nameofnote", "Scare", true);
}

void Scare(string &in asEntity)
{
SetEntityActive("nameofentity", true);
}

Or if you want to teleport the player to a different part of the map:

void OnStart()
{
SetEntityPlayerInteractCallback("nameofnote", "Scare", true);
}

void Scare(string &in asEntity)
{
TeleportPlayer("nameofPlayerStartArea");
}

Make another start area where you want the player to transport.

(This post was last modified: 02-20-2012, 02:11 PM by flamez3.)
02-20-2012, 02:11 PM
Find


Messages In This Thread
Scripting help !!! :E - by Sundayz - 02-20-2012, 12:41 PM
RE: Scripting help !!! :E - by flamez3 - 02-20-2012, 12:52 PM
RE: Scripting help !!! :E - by Sundayz - 02-20-2012, 12:56 PM
RE: Scripting help !!! :E - by flamez3 - 02-20-2012, 01:12 PM
RE: Scripting help !!! :E - by Sundayz - 02-20-2012, 01:40 PM
RE: Scripting help !!! :E - by flamez3 - 02-20-2012, 02:11 PM
RE: Scripting help !!! :E - by Sundayz - 02-20-2012, 06:09 PM
RE: Scripting help !!! :E - by flamez3 - 02-21-2012, 03:22 AM
RE: Scripting help !!! :E - by Sundayz - 02-21-2012, 11:47 AM



Users browsing this thread: 1 Guest(s)