
actually I'm trying to use "addstate" and "shine" commands, but how to make glow in green color? Someone have a idea?
EDIT: Ok, it worked
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
### Radioactive Barrel
id=225
name=Radioactive Barrel
group=stuff
icon=gfx\r_barrel.bmp
model=gfx\r_barrel.b3d
health=50
mat=metal
var=radius,Radius,100,0
var=damage,Damage,25,0
script=start
	on:load {
		addstate "self",22;
		statesize "self",22,50;
		statecolor "self",22,0,255,0;
	}
	on:create {
		addstate "self",22;
		statesize "self",22,50;
		statecolor "self",22,0,255,0;
	}
	on:kill {
		explosion getx("self"),gety("self"),getz("self"),$radius,$damage;
		addstate "unit",1,"intoxication";
		statevalue "unit",1,"intoxication",0;
	}
script=end

Now I have a diferent question... When the barrel explodes, I want then to make it intoxicate a certain area... How can I make this?
edited 1×, last 02.07.15 05:05:49 pm
How to make a "certain toxic area"?
1 
Offline


S2 is a wonderful game with LOTS of possibilities and we can make barely everything in the game. So I will spend some days or weeks in the process of making my mod. Thank you and good luck with your mod. 