Forum

> > CS2D > Scripts > Spawn projectile
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Spawn projectile

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Spawn projectile

tos12345678
User Off Offline

Zitieren
Hi, i need script!

,If player kill' it spawn projectile ON MURDER (SMOKE EFECT) - color: red

alt Re: Spawn projectile

EngiN33R
Moderator Off Offline

Zitieren
Since you said "smoke effect" and mentioned the colour red, I assume you just want red-coloured smoke to appear where the player died.

1
2
3
4
addhook("die", "killsmoke")
function killsmoke(id)
    parse('effect "colorsmoke" '..player(id,'x')..' '..player(id,'y')..' 48 32 255 0 0')
end

alt Re: Spawn projectile

tos12345678
User Off Offline

Zitieren
1
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
1× editiert, zuletzt 09.01.16 17:03:51

alt Re: Spawn projectile

EngiN33R
Moderator Off Offline

Zitieren
1
2
3
4
xjaile = 1
yjaile = 1

timer(15000,"parse",'effect "colorsmoke" '.. xjaile*6120-60 ..' '.. yjaile*2490-75 ..' 48 32 255 0 0')

alt Re: Spawn projectile

DC
Admin Off Offline

Zitieren
@user tos12345678: I just wonder why you introduced these "xjaile" and "yjaile" variables. They both have a value of 1 and you just use them to multiply... the effect of all this is: None at all.

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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht