Battledale_PRC8/_module/nss/fr_barb_campfire.nss

18 lines
357 B
Plaintext
Raw Permalink Normal View History

void main()
{
if (GetLocalInt(OBJECT_SELF,"jw_ndone")==1)
{
return;
}
object oTarget = GetEnteringObject();
object oCamp = GetObjectByTag("fr_barb_campfire");
effect eLight = EffectVisualEffect(VFX_DUR_LIGHT_YELLOW_15, FALSE);
if (GetIsPC(oTarget))
{
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLight, oCamp);
SetLocalInt(OBJECT_SELF,"jw_ndone",1);
}
}