Jump to content

Recommended Posts

Posted

I am trying to script a respawn script in a LUA file.

 

According to MIST;

- The following code will respawn a group if it has died.

 

if not Group.getByName('groupName') then

mist.respawnGroup('groupName', true)

end

 

Question; Why do I need to use a CONDITIONS if the code itself already check if my 'groupname' is dead? I am saying "WHY" because I tried to use just the code above and nothing happens with my "groupname" after getting shut down.

 

If I use the ME, I always wrote;

SWITCH CONDITIONS, UNIT DEAD(groupname), DO SCRIPT

if Group.getByName('groupName') then

mist.respawnGroup('groupName', true)

end

as soon as dead, the 'groupname' respawns....as intended.

My systems:

 

Windows 10 64 bits

I7-8700k

32.0 GB RAM

500Gb SSD

Asus ROG 2080ti

HP Reverb

 

Windows 10 64 bits

I7-6820HQ CPU @ 2.70Ghz

32.0 GB RAM

500Gb SSD

Nvidia Quadro M4000M

TrackIR 5

  • Recently Browsing   0 members

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