Seth Clearwater Posted December 21, 2009 Share Posted December 21, 2009 I need this for a mod that I'm currently working on... it's a simple little mod, but it's a fun mod for those of you that want a lightsaber on Peragus. I've tried everything I can think of, but I don't know how to create a destroy script. x_x Link to comment Share on other sites More sharing options...
DarthStoney Posted December 21, 2009 Share Posted December 21, 2009 depending on what you want to detroy this basic script should work void main() { object oMyItem = GetObjectByTag("[color="Red"]tag name of item[/color]", 0); DestroyObject(oMyItem, 0.0, 0, 0.0, 0); } Link to comment Share on other sites More sharing options...
Seth Clearwater Posted December 21, 2009 Author Share Posted December 21, 2009 Thanks ^-^ And it's a lightsaber xD Link to comment Share on other sites More sharing options...
LDR Posted April 29, 2010 Share Posted April 29, 2010 What if it was a creature? Link to comment Share on other sites More sharing options...
Hope Estheim Posted April 29, 2010 Share Posted April 29, 2010 void main() { ActionPauseConversation(); object oGoodbye; oGoodbye = GetObjectByTag("tag_of_npc"); SetGlobalFadeOut(1.0, 0.5); DelayCommand(1.0, DestroyObject(oGoodbye)); DelayCommand(1.0,SetGlobalFadeIn(0.7,0.0)); ActionResumeConversation(); } The ActionResumeConversation should be used if you're continuing a conversation. lol Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.