Jump to content

Home

Remove from Inventory


darthbdaman

Recommended Posts

I have been trying to remove the Blue Lightsaber from the inventory. The have no scripting ability, and the scripts I have used compile, but crash the game when they trigger. I have looked at various tutorials and tried multiple different methods, but they all seem to crash the game. I am triggering the script when Trask runs off to fight Bandon at the end of "end_cut01.dlg". Can anyone show me a script that works, or tell me why the game would crash when the script compiles?

Link to comment
Share on other sites

Here, this should work. It compiles all fine, though having never used this function, nor tried this out in-game I don't know if it works or not. But it should...

 

void main()
{

object oPC = GetFirstPC();

object oLightsaber = GetObjectByTag("g_w_lghtsbr01");

ActionTakeItem(oLightsaber, oPC);

}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...