I’m looking to illuminate my pillar with pulsing red light.
ive used effect eEffect and ApplyEffectToObject and nothing seems to happen. I put it on user defined handler?
Can you post the script?
sorry.
void main()
{
object oObject = OBJECT_SELF;
effect eEffect = EffectVisualEffect(VFX_DUR_AURA_PULSE_CYAN_RED);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oObject);
}
The script itself is working a-ok. It’s just put on the wrong event…
If you want it to be “fired” when the player enters an area, try putting it on a Generic Trigger-OnEnter event, so when the player steps in, it activates…
void main()
{
// Fires OnEnter. Gets the tag of the Pillar you want to apply the effect on, and applies the effect.
object oObject = GetNearestObjectByTag(“Pillar_Tag”); //Or GetObjectByTag…
effect eEffect = EffectVisualEffect(VFX_DUR_AURA_PULSE_RED_BLUE);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oObject);
}
Or, if you want to “fire” when the player clicks on the pillar, simply put it on “OnClick/OnUsed/OnOpened etc” event of the pillar…
object oObject = OBJECT_SELF;
etc…
yeah, I just can’t get it working. Did the generic trigger, OnEnter
void main()
{
object oObject = GetNearestObjectByTag(“X0_RUINEDPILLAR01”, oObject);
effect eEffect = EffectVisualEffect(VFX_DUR_AURA_PULSE_RED_BLUE);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oObject);
Sorry the for the slow reply
Have you by any change checked the “STATIC” Checkbox on the Pillar’s properties?
I played around with it set it, to static, and non-static. Nothing.
I’m going to try again.
Nothing. Do we need to call the PC? in this script?
My apologies. My scripting is complete rookie.
This works for me…
void main()
{
object oPC = GetEnteringObject();
object oObject = GetNearestObjectByTag("x0_runepillar", oPC);
effect eEffect = EffectVisualEffect(VFX_DUR_AURA_PULSE_RED_BLUE);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oObject);
}
In your code, the tag is in the wrong case but you may just have changed it yourself, just make sure it’s accurate, obviously I’m also not sure you can use oObject in GetNearestObjectByTag because it hasn’t had a value assigned to it until the call to GetNearest has completed. You’ll also want to use a ‘do once’ flag to only do this the first time the trigger/area is entered.
I’m all good.
Thank you very much you guys for helping out. I learn a little more every day.