abe.lloyd
Junior Member
Posts: 15
Threads: 2
Joined: Mar 2012
Reputation:
0
|
RE: Help Please with Scripting
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
void UnlockLevelDoor(string &in asItem,string &in asEntity)
{
SetLevelDoorLocked(asEntity, false);
RemoveItem(asItem);
}
soz heres the full thing
////////////////////////////
// Run when the map starts
void OnStart()
{
AddUseItemCallback("", "key_1", "level_celler_1", "UnlockLevelDoor", true);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
void UnlockLevelDoor(string &in asItem,string &in asEntity)
{
SetLevelDoorLocked(asEntity, false);
RemoveItem(asItem);
}
(This post was last modified: 03-31-2012, 04:05 PM by abe.lloyd.)
|
|
03-31-2012, 04:03 PM |
|