Jump to content

Recommended Posts

Posted (edited)

I'm not sure what I'm missing here but I'm getting an error..

 

I have group called Tank_Group_1 with just one unit in it, unit name: Tank_1. When that tank is killed, I want it to respawn so I'm doing:

 

Type: CONTINUOUS ACTION (Trigger12345, NO EVENT)

 

Condition: UNIT DEAD (Tank_1)

 

Actions: DO SCRIPT (mist.respawnGroup('Tank_Group_1')

 

 

Error message:

 

[string "mist.respawnGroup('Tank_Group_1')"]:1: attempt to index global 'mist' (a nil value)

Edited by Grand
Posted

That error message looks like you haven't loaded the main Mist script yet. I think I read somewhere that if you are trying to load it using a "mission start" trigger, it won't work because of a current bug. It could also be that the mission, as it is starting up, sees the unit as dead and tries to respawn it before Mist is loaded. Maybe insert a "time more" > 5 seconds as an additional condition to your trigger?

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...