Page 1 of 1

MR. INVINCIBLE

Posted: September 14th, 2007, 12:00 am
by gudson
can someone tell me how to make units invulnerable using jasscraft, not world editor, i wanna do this to swat so i can solo survival as rank 1.

Re: MR. INVINCIBLE

Posted: September 14th, 2007, 12:33 am
by colmo
You could just have some1 put in a jasspack for you then -invul :D

Re: MR. INVINCIBLE

Posted: September 14th, 2007, 12:33 am
by JJ2197
Well here it is:

local unit u
if SubString(s,0,6)=="-invul"then
call SetUnitInvulnerable(u,true)

It is used in Dekar's/Aero's pack here

Re: MR. INVINCIBLE

Posted: September 14th, 2007, 12:36 am
by Aero
call SetUnitInvulnerable(unit,boolean)

unit = The unit to be vulnerable/invulnerable
boolean = true (If you want to make the unit invulnerable)
boolean = false (If you want to make the unit vulnerable)