Forum

> > CS2D > Scripts > About Projectile
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch About Projectile

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt About Projectile

X-Files
User Off Offline

Zitieren
why doesnt work ?

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
function Array(size,value) 
	local array = {}
	for i = 1, size do
		array[i]=value
	end
	return array
end

glowstonex 	  = Array(32,0)
glowstoney 	  = Array(32,0)

addhook("projectile","arcane")
function arcane (id,weapon,x,y)
if (weapon==50) then
 		glowstonex[id]=x
		glowstoney[id]=y
end	
end	


addhook("second","tileeffectssecond")
function tileeffectssecond(id)
for id = 1,32 do
parse('effect "flare" ' .. glowstonex[id] .. ' ' .. glowstoney[id] .. ' 100 128 255 128 0')
end
end

alt Re: About Projectile

GeoB99
Moderator Off Offline

Zitieren
user X-Files hat geschrieben
@user MikuAuahDark: how i ll get x,y coordinate from attack hook ?


You can get x and y coordinates from map editor.

Just load a map in map editor and you can see the coordinates of tiles in left below (is Tile Position x|y).

alt Re: About Projectile

X-Files
User Off Offline

Zitieren
@user GeoB99: im talking about x,y coordinate of attacked tile !

why you writing comment without even looking my codes ? you could easly understand what im talking about...
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht