,If player kill' it spawn projectile ON MURDER (SMOKE EFECT) - color: red
Forum
CS2D Scripts Spawn projectileSpawn projectile
7 replies 1
,If player kill' it spawn projectile ON MURDER (SMOKE EFECT) - color: red
Basically kill as hook + parse to execute spawnprojectile & effect + possibly some other commands to get some values
1
2
3
4
2
3
4
addhook("die", "killsmoke") function killsmoke(id) parse('effect "colorsmoke" '..player(id,'x')..' '..player(id,'y')..' 48 32 255 0 0') end
1
2
3
4
2
3
4
xjaile = 1 yjaile = 1 timer(15000,"parse",'effect "colorsmoke" "..xjaile*6120-60 .." "..yjaile*2490-75) 48 32 255 0 0')
wrong! HELP
edited 1×, last 09.01.16 05:03:51 pm
1
2
3
4
2
3
4
xjaile = 1 yjaile = 1 timer(15000,"parse",'effect "colorsmoke" '.. xjaile*6120-60 ..' '.. yjaile*2490-75 ..' 48 32 255 0 0')
So your code can be simplified to:
1
timer(15000,"parse",'effect "colorsmoke" '.. 6120-60 ..' '.. 2490-75 ..' 48 32 255 0 0')
...unless you change the values of the variables somewhere to move the effect. Then they would make sense of course - but probably not in a multiplication with 6120-60 or 2490-75
1