Jump to content

Home

Object Effects


Recommended Posts

Just about anything. Just make sure you apply the visual effect before destroying the object: if the object odes not exist anymore you can't apply any effect. Use the delay command function for this. Something like:

void main()
{
object oTarget=GetObjectByTag("d3_cake");
effect eMorph=EffectVisualEffect(1046);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eMorph, oTarget, 2.5);
DelayCommand(0.5, DestroyObject(oTarget));
}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...