Forum

> > CS2D > Scripts > Supply
Forums overviewCS2D overview Scripts overviewLog in to reply

English Supply

7 replies
To the start Previous 1 Next To the start

old Supply

tos12345678
User Off Offline

Quote
Hi, i need script:

My Supply:
timer(15000,"parse","spawnobject 15 46 68 0 0 0 0")

When i destroy my supply THAT delete: timer(15000,"parse","trigger supply2,supply2explode,supplyFX2,supplydelay2")

old Re: Supply

Ace Howl
User Off Offline

Quote
@user tos12345678, I don't really understand your second help about this:

user tos12345678 has written
When i destroy my supply THAT delete: timer(15000,"parse","trigger supply2,supply2explode,supplyFX2,supplydelay2")


so, I will help you from what I understand.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
timer(15000,"spawnobj)

function spawnobj()
	parse("spawnobject 15 46 68 0 0 0 0")
end

addhook("objectkill","objectkill_")
function objectkill_(id,player)
	if id == 15 then
		if object(id,"tilex") == 46 and object(id,"tiley") == 68 then
		timer(15000,"destroyobject")
		function destroyobject()
			parse("trigger supply2")
			parse("trigger supply2explode")
			parse("trigger supply2FX2")
			parse("trigger supplydelay2")
		end
	end
end
edited 2×, last 29.12.15 06:57:11 am

old Re: Supply

tos12345678
User Off Offline

Quote
I mean exactly it

unfortunately supply (can't have tigger)


because there does not work

old Re: Supply

Cure Pikachu
User Off Offline

Quote
Of course, you didn't just blindly copy the code, did you?
1
2
3
4
5
6
7
8
9
10
11
12
timer(15000,"spawnobj")

function spawnobj()
	parse("spawnobject 15 46 68 0 0 0 0")
end

addhook("objectkill","objectkill_")
function objectkill_(id,player)
	if object(id,"type") == 15 and object(id,"tilex") == 46 and object(id,"tiley") == 68 then
		timer(15000,"parse","trigger supply2,supply2explode,supplyFX2,supplydelay2")
	end
end

old Re: Supply

Ace Howl
User Off Offline

Quote
user Ace Howl has written
1
timer(15000,"spawnobj)

Oh my, that was embarassing.

There you go, user Cure Pikachu. I didn't double check my code, didn't test the code fyi.

Help attempt failed .

old Re: Supply

tos12345678
User Off Offline

Quote
"Cure Pikachu" again thanks you

One more thing...
I want to super supply have big hp
(3hits knife = -1hp)

old Re: Supply

Ace Howl
User Off Offline

Quote
1
parse('mp_building_health "Super Supply" 13500')

This is based on calculation:
Knife damage = 45
45 x 100HP = 4500HP
4500HP x 3 hits = 13500HP

Have fun, @user tos12345678:
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview