18 lines
357 B
Plaintext
18 lines
357 B
Plaintext
|
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);
|
||
|
}
|
||
|
}
|