HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Why does this crash my game sometimes?

02-08-2006, 07:50 AM#1
Moss
Trigger:
Remove Rfms
Collapse Events
Unit - A unit Is issued an order with no target
Collapse Conditions
((Triggering unit) is in Reinforcements) Equal to True
Collapse Actions
Unit - Remove (Triggering unit) from the game

I have these units in the "Reinforcements" unit group, loaded in a Barracks with the Cargo ability. This trigger is supposed to remove the unit from the game if it is clicked on in the cargo hold (unloading it). It works most of the time but crashes the game seemingly if you try to unload too many units too fast. The error message says some memory could not be referenced or whatever.
02-08-2006, 10:38 AM#2
Vexorian
maybe it is because it tries to issue the order after the unit is removed (that event calls the trigger before the unit gets the order) try to add a wait of 0 seconds before removing the unit
02-09-2006, 12:34 AM#3
Moss
Thanks Vexorian, I think that did it. Although I had to do a larger than 0 second wait. I haven't been able to fully test it though because of another issue I am having.
02-09-2006, 01:36 AM#4
Orc Dork
Hmm, ya beat me to that Vex. I thought of that while i read this post. Good to see you are still thirsty for rep :-P.