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
Sundayz Offline
Junior Member

Posts: 6
Threads: 2
Joined: Feb 2012
Reputation: 0
#7
RE: Scripting help !!! :E

(02-20-2012, 02:11 PM)flamez3 Wrote: 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
(02-20-2012, 02:11 PM)flamez3 Wrote: Okay Big Grin Thanks a lot bro ! Big Grin !!
(02-20-2012, 02:11 PM)flamez3 Wrote: (if someone has an other suggestion for the sound or something tell me please :-) )
02-20-2012, 06:09 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)