//:://////////////////////////////////////////////
// Placeable events
//:://////////////////////////////////////////////
#include "placeable_h"
const string CAMPFIRE = "pro_campfire_lightable";
const int LIGHT_CAMPFIRE = 4007; //References the VFX_Base 2DA
void main()
{
event ev = GetCurrentEvent();
int nEvent = GetEventType(ev);
int nEventHandled = FALSE; //keep track of whether the event has been handled
switch (nEvent)
{
//---------------------------------------------------------------------
// Sent by engine when creature clicks on the placeable.
//---------------------------------------------------------------------
case EVENT_TYPE_PLACEABLE_ONCLICK: // or EVENT_TYPE_APPLY_EFFECT
object oCampfire = GetObjectByTag(CAMPFIRE);
ApplyEffectOnObject (EFFECT_DURATION_TYPE_PERMANENT, EffectVisualEffect(LIGHT_CAMPFIRE),oCampfire);
nEventHandled = TRUE;
break;
}
if (!nEventHandled) //If this event wasn't handled by this script, let the core script try
{
HandleEvent(ev, RESOURCE_SCRIPT_PLACEABLE_CORE);
}
}I'm using the above code, created by Sonmeister, to light my campfire. I was hoping to be able to create the following condition for it:
- It can only be lit if activated by a specific, quicklotted item
Can someone help me creating that condition please?





Retour en haut






