Forum

> > CS2D > Scripts > About Projectile
Forums overviewCS2D overview Scripts overviewLog in to reply

English About Projectile

8 replies
To the start Previous 1 Next To the start

old About Projectile

X-Files
User Off Offline

Quote
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

old Re: About Projectile

GeoB99
Moderator Off Offline

Quote
user X-Files has written
@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).

old Re: About Projectile

X-Files
User Off Offline

Quote
@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...
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview