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?
FurtherGames Offline
Member

Posts: 72
Threads: 23
Joined: Apr 2013
Reputation: 1
#4
RE: Can't progress without picking up note+key Script?

(02-03-2014, 11:22 PM)DnALANGE Wrote: 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!

What do you mean by "just your script name"? And if that's the function it calls on, where is it?
02-04-2014, 11:15 PM
Find


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



Users browsing this thread: 1 Guest(s)