(07-15-2012, 01:49 AM)Your Computer Wrote: (07-15-2012, 01:01 AM)zergling50 Wrote: which paramater variable names do I have messed up?
SetSwingDoorLocked(entity, false);
PlaySoundAtEntity("", "unlock_door", entity, 0, false);
RemoveItem(item);
You should have received the AngelScript output telling you this.
I dont know what AngelScript output is, ive never recieved any error messages( im doing coding in notepad)
(07-15-2012, 06:26 AM)zergling50 Wrote: (07-15-2012, 01:49 AM)Your Computer Wrote: (07-15-2012, 01:01 AM)zergling50 Wrote: which paramater variable names do I have messed up?
SetSwingDoorLocked(entity, false);
PlaySoundAtEntity("", "unlock_door", entity, 0, false);
RemoveItem(item);
You should have received the AngelScript output telling you this.
I dont know what AngelScript output is, ive never recieved any error messages( im doing coding in notepad)
I tried what you said and my code still wont work. Current code:
////////////////////////////
// Run when starting map
void OnStart()
{
AddUseItemCallback("OpenDoor", "key", "castle_1", "KeyOnDoor", true);
SetEntityPlayerInteractCallback("key", "ActivateMonster", true);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
void ActivateMonster(string &in asItem)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "Idle");
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(entity, false, true);
PlaySoundAtEntity("", "unlock_door", entity, 0, false);
RemoveItem(item);
}