flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
RE: Help Please with Scripting
Use this:
////////////////////////////
// Run when the map starts
void OnStart()
{
AddUseItemCallback("", "key_1", "level_celler_1", "UnlockLevelDoor", true);
}
void UnlockLevelDoor(string &in asItem,string &in asEntity)
{
SetLevelDoorLocked(asEntity, false);
RemoveItem(asItem);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
When scripting make sure that void OnStart() functions stay within the void OnStart() brackets and so on.
|
|
03-31-2012, 04:36 PM |
|