DRedshot
Senior Member
Posts: 374
Threads: 23
Joined: Jun 2011
Reputation:
11
|
RE: How to end custom story as a Demo?
Ok, does your AddUseItemCallback look word for word exactly like this?
AddUseItemCallback("Unlock" , "labkey_1" , "labdoor" , "UseKeyOnDoor_6" , true);
also, in void OnStart() add
SetLocalVarInt("IsDoorunLocked", 0);
if its still messing up change the UseKeyOnDoor_6 part of the script to:
void UseKeyOnDoor_6(string &in asItem, string &in asEntity)
{
SetLocalVarInt("IsDoorunLocked", 1);
SetLevelDoorLocked(asEntity, false);
PlaySoundAtEntity("", "unlock_door", asEntity, 0, false);
RemoveItem(asItem);
}
also, if none of these suggestions work, you may aswell try this --
try making a script area cover the door, rename the door to "randomnamehere" and call the script area "labdoor" hopefully that will work...
|
|
07-16-2011, 11:07 PM |
|