FurtherGames
Member
Posts: 72
Threads: 23
Joined: Apr 2013
Reputation:
1
|
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 |
|