[ian-reeds-games] Change Unit Type error

  • From: Richard Claridge <richard.claridge68@xxxxxxxxxxxxxx>
  • To: ian-reeds-games <ian-reeds-games@xxxxxxxxxxxxx>
  • Date: Thu, 25 Apr 2013 10:21:50 +0100

Hi Craig.
Am I doing something wrong here?
I am trying to convert unit on death and I've used the following line
in my units file.
after_death=change_unit_type@ { NewType: "burnt_vehicle", KeepPoints:
false, Team: 5 }

and when the unit dies I am getting the following error.

Error in script.
Context: change_unit_type
Line: 51
Column: 15, 16
TypeError: Cannot set property 'Team' of null

What am I doing wrong?

Richard
P.S. Sorry all for the earlier blank message, my 1 year old pressed
send before I'd typed it.

Other related posts:

  • » [ian-reeds-games] Change Unit Type error - Richard Claridge