HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Image attached to unit trigger causes crash!

02-10-2007, 05:46 PM#1
Nazra7
Well, everything works fine right now the only problem is my trigger I use to keep the wings image attached to your hero, causes the game to crash when it I guess kills a unit with wings on too, or just when any unit dies with wings on dies it crashes. This is the trigger causing the problem:
Trigger:
Collapse Events
Time - Every 0.50 seconds of game time
Collapse Actions
Collapse Unit Group - Pick every unit in (Units in (Playable map area)(Alignment[(Player number of (Owner of (Matching unit)))] Not equal to Nuetrel)) and do (Actions)
Collapse Loop - Actions
Image - Change the position of wings[(Player number of (Owner of (Picked unit)))] to (Position of (Picked unit)) with Z offset 0.00
I think it crashes because when the unit dies it can't change the position of the item to the position of the picked unit because it does not exsist. I can't ever turn off this trigger because every player is effected by it, and without it you can't tell who is what alingment in pvp mode, becuase the wings aren't following you. Can anyone tell me how I can rewrite this trigger so that it can follow the unit and stop when it dies? I tried to make it say when unit dies hide wings but that didn't work. Just some how I can make the image follow a unit without it crashing.

This is one of my main aspects in my map I can't get rid of it.
Thanks in advance.
02-10-2007, 07:36 PM#2
Av3n
Have you tryed using it as a attachment?

-Av3n
02-11-2007, 01:42 AM#3
Alevice
It would certainly be easier to use a simple model attached on overhead (like the exclamation sign). Much less of a hassle.