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
Script Help Can't progress without picking up note+key Script?
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#3
RE: Can't progress without picking up note+key Script?

Make 2 script area's.
You can do it on the exacpt same spot.
Then do this for the FIRST look :
Quote:void OnStart()
{
AddEntityCollideCallback("Player", "FIRSTSCRIPTAREA", "JUSTYOURSCRIPTNAME", true, 1);
AddEntityCollideCallback("Player", "SECONDSCRIPTAREA", "JUSTYOURSCRIPTNAMETWO", true, 1);
SetEntityPlayerInteractCallback("YOURKEYNAME", "JUSTHECALLBACKNAME", false);
}
+ DEactivate the second scriptarea in the leveleditor.
Quote: void JUSTHECALLBACKNAME(string &in asItem)
{
SetEntityActive("FIRSTSCRIPTAREA" , false);// FIRST script will DEACTIVATE
SetEntityActive("SECONDSCRIPTNAME" , true); //This is when the SECOND script is getting ACTIVE :
}

------
Do you understand what i mean here?
If not, i'll explane more.
Try it, it should work!
(This post was last modified: 02-03-2014, 11:24 PM by DnALANGE.)
02-03-2014, 11:22 PM
Find


Messages In This Thread
RE: Can't progress without picking up note+key Script? - by DnALANGE - 02-03-2014, 11:22 PM



Users browsing this thread: 2 Guest(s)