| RE: Item pickup trigger sound help 
 
				When I run the game, it crashes and says expected data type. I'm pretty sure my code is wrong, I'll put it here:
 void OnStart()
 {
 
 AddUseItemCallback("", "Key", "Door", "UseKeyOnDoor", true);
 AddUseItemCallback("OpenDoor", "LevelKey1", "LevelDoor1", "UseKeyOnLevelDoor", true);
 AddEntityCollideCallback("Player", "SpawnScare", "SoundCheck2", true, 1);
 AddEntityCollideCallback("Player", "OpenScare", "SoundCheck", true, 1);
 SetEntityCallbackFunc("Key", PickUp);
 }
 
 
 
 void PickUp("Key", "OnPickup")
 {
 PlaySoundAtEntity("pickupsound", "21_screams.snt", "PickupSound", 0.01f, false);
 }
 
 
 void SoundCheck2(string &in asParent, string &in asChild, int alState)
 {
 PlaySoundAtEntity("ambientsound", "ambience_wind_eerie.snt", "SpawnScare", 0.01f, true);
 }
 
 void SoundCheck(string &in asParent, string &in asChild, int alState)
 {
 PlaySoundAtEntity("scaresound", "notice.snt", "Player", 0.01f, false);
 }
 
 void UseKeyOnDoor(string &in asItem, string &in asEntity)
 {
 SetSwingDoorLocked(asEntity, false, true);
 PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
 RemoveItem(asItem);
 }
 
 void UseKeyOnLevelDoor(string &in asItem, string &in asEntity)
 {
 
 SetLevelDoorLocked(asEntity, false);
 PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
 RemoveItem(asItem);
 }
 void OnLeave()
 {
 SetupLoadScreen("Loading", "LoadScreen1", 0, "LoadingScreen1.jpg");
 }
 
 The ones at the front always die first... |