MR. INVINCIBLE

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Post Reply
User avatar
gudson
Junior Member
Posts: 34
Joined: July 31st, 2007, 4:06 am
Title: Smile
Contact:

MR. INVINCIBLE

Post 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.
User avatar
colmo
V.I.P.
Posts: 329
Joined: June 13th, 2007, 4:42 pm
Title: Wc3 is for Nerds!!!!

Re: MR. INVINCIBLE

Post by colmo »

You could just have some1 put in a jasspack for you then -invul :D
...................................................................................................................
Image

[blinking]How Do You Like Me Now? Also Im Going To Capitolize Every Word That I Type From Now On Just To Be Annoying.[/blinking]
User avatar
JJ2197
Legendary Genius
Posts: 1311
Joined: August 8th, 2007, 8:10 am
Title: Legendary Genius²
Location: St. George Utah

Re: MR. INVINCIBLE

Post 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
Computer Specs:
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: MR. INVINCIBLE

Post 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)
Post Reply