(02-21-2012, 06:37 PM)Juby Wrote: This is one way to do what you want.
void OnStart()
{
SetEntityPlayerInteractCallback("LanternName", "PickedUpLantern", true);
}
void PickedUpLantern(string &in asEntity)
{
PlaySoundAtEntity("", "amb_alert.snt", "LanternName", 0.1f, false);
}
void OnEnter()
{
}
void OnLeave()
{
}
I did this, changed the lantern names and it still seems to not work.
void OnStart()
{
SetEntityPlayerInteractCallback("Lantern_1", "PickedUpLantern", true);
}
void PickedUpLantern(string &in asEntity)
{
PlaySoundAtEntity("", "amb_alert.snt", "Lantern_1", 0.1f, false);
}
void OnEnter()
{
}
void OnLeave()
{
}
(02-21-2012, 06:37 PM)Juby Wrote: This is one way to do what you want.
void OnStart()
{
SetEntityPlayerInteractCallback("LanternName", "PickedUpLantern", true);
}
void PickedUpLantern(string &in asEntity)
{
PlaySoundAtEntity("", "amb_alert.snt", "LanternName", 0.1f, false);
}
void OnEnter()
{
}
void OnLeave()
{
}
Also, would I need to put anything into the HPL level editor?