Error missing a ";" 
			 
			
				i get an error saying i miss a ; but i cant find it. can you?  
 
void OnStart() 
{ 
AddUseItemCallback("", "key_1", "mansion_1", "KeyOnDoor", true);  
AddUseItemCallback("", "key_2", "mansion_2", "KeyOnDoor_2", true); 
AddUseItemCallback("", "key_3", "mansion_5", "KeyOnDoor_5", true); 
SetEntityPlayerInteractCallback("key_3", "ActivateMonster", true);  
} 
 
void KeyOnDoor(string &in asItem, string &in asEntity) 
{ 
SetSwingDoorLocked("mansion_1", false, true); 
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0.0f, true); 
RemoveItem("key_1"); 
} 
 
void KeyOnDoor_2(string &in asItem, string &in asEntity) 
{ 
SetSwingDoorLocked("mansion_2", false, true); 
PlaySoundAtEntity("", "unlock_door", "mansion_2", 0.0f, true); 
RemoveItem("key_2"); 
} 
 
void KeyOnDoor_5(string &in asItem, string &in asEntity) 
{ 
SetSwingDoorLocked("mansion_5", false, true); 
PlaySoundAtEntity("", "unlock_door", "mansion_5", 0.0f, true); 
RemoveItem("key_3"); 
} 
 
//////////////////////////// 
// Run when leaving map 
void OnLeave() 
{ 
 
} 
 
void ActivateMonster(string &in item) 
 
{ 
SetEntityActive("servant_grunt_1"), true); 
}
			 
			
			
			
				
(This post was last modified: 06-20-2012, 08:22 PM by Hartmann.)
 
				
			 
		 |