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
multiple script problem!!!
muminmuffin Offline
Junior Member

Posts: 4
Threads: 2
Joined: Feb 2011
Reputation: 0
#3
RE: multiple script problem!!!

it is for amnesia. and yes i have renamed the doornames and all that, i just need help with this, and this is not just for especially this script, but for all.

if i write the first example script here:

void OnStart()
{
AddUseItemCallback("", "awesomekey_1", "awesomedoor_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("awesomedoor_1", false, true);
PlaySoundAtEntity("", "unlock_door", "awesomedoor_1", 0, false);
RemoveItem("awesomekey_1");
}


<----then do i need to write something special arround this line?? like {} or something like that to hold the two appart? cause i have tried to just start at the line beneath but then the game says :unexpected.. blabla and then ''{''?? how do i write them two next to each other?


void OnStart()
{
AddUseItemCallback("", "awesomekey_2", "awesomedoor_2", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("awesomedoor_2", false, true);
PlaySoundAtEntity("", "unlock_door", "awesomedoor_1", 0, false);
RemoveItem("awesomekey_2");
}
02-12-2011, 10:46 PM
Find


Messages In This Thread
multiple script problem!!! - by muminmuffin - 02-12-2011, 10:32 PM
RE: multiple script problem!!! - by Urkle - 02-12-2011, 10:40 PM
RE: multiple script problem!!! - by muminmuffin - 02-12-2011, 10:46 PM
RE: multiple script problem!!! - by Oscar House - 02-12-2011, 10:56 PM
RE: multiple script problem!!! - by muminmuffin - 02-12-2011, 11:02 PM
RE: multiple script problem!!! - by Fireintex - 11-09-2011, 12:01 AM
RE: multiple script problem!!! - by Tanshaydar - 11-09-2011, 05:38 AM
RE: multiple script problem!!! - by 5BitHero - 06-14-2013, 09:15 PM



Users browsing this thread: 1 Guest(s)