darthbdaman Posted June 18, 2012 Share Posted June 18, 2012 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 More sharing options...
Fallen Guardian Posted June 18, 2012 Share Posted June 18, 2012 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 More sharing options...
darthbdaman Posted June 18, 2012 Author Share Posted June 18, 2012 Thanks. I will try it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.