Module commit
Module commit.
This commit is contained in:
25
_module/nss/campfire.nss
Normal file
25
_module/nss/campfire.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
void main()
|
||||
{ object oPC = GetItemActivator();
|
||||
object oItem = GetItemActivated();
|
||||
|
||||
object oTarget;
|
||||
object oSpawn;
|
||||
location lTarget;
|
||||
|
||||
lTarget = GetItemActivatedTargetLocation();
|
||||
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "plc_campfr", lTarget);
|
||||
oTarget = oSpawn;
|
||||
{
|
||||
AssignCommand(oTarget, PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE));
|
||||
SetPlaceableIllumination (oTarget, FALSE);
|
||||
RecomputeStaticLighting(GetArea(oTarget));
|
||||
|
||||
object oCaster;
|
||||
oCaster = oPC;
|
||||
AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_REGENERATE, oPC, METAMAGIC_ANY, TRUE, 10, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectSlow(), oPC, 45.0f);
|
||||
DelayCommand(60.0,DestroyObject(oTarget));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user