Det. Bart Lasiter Posted April 26, 2005 Share Posted April 26, 2005 Does anybody know what kind of VFX can be applied to "DestroyObject(oTarget)" script command? Link to comment Share on other sites More sharing options...
Darth333 Posted April 27, 2005 Share Posted April 27, 2005 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 More sharing options...
Det. Bart Lasiter Posted April 27, 2005 Author Share Posted April 27, 2005 Thanks, after looking at that script I saw that it was a scripting error on my part. Link to comment Share on other sites More sharing options...
tk102 Posted April 27, 2005 Share Posted April 27, 2005 Just a side note: visual effects cannot be applied to OBJECT_TYPE_ITEM. Not that you asked. Link to comment Share on other sites More sharing options...
Darth333 Posted April 27, 2005 Share Posted April 27, 2005 Originally posted by tk102 Just a side note: visual effects cannot be applied to OBJECT_TYPE_ITEM. Not that you asked. Spawn an invisible creature like in my floating lightsaber mod and problem is solved Link to comment Share on other sites More sharing options...
tk102 Posted April 27, 2005 Share Posted April 27, 2005 Was thinking more along the lines of making an object glow like it had a shield... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.