Forum

> > CS2D > Scripts > Hit command
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Hit command

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Hit command

Alistaire
User Off Offline

Zitieren
Is there anything like a hitcommand? Not like slap but just a hitsound and your healthbar lighting up. Like a hit entity with 0 damage.

alt Re: Hit command

iCe4147
User Off Offline

Zitieren
There is an sv_sound and sv_sound2 command so I suggest you use that since it doesn't deal any damage.

Play the sound to everyone:
1
parse("sv_sound <hit sound>")

Play the sound to only one person:
1
parse("sv_sound2 <hit sound>")

alt Re: Hit command

Avo
User Off Offline

Zitieren
1
2
3
function hit(id)
	parse("sv_sound2 "..id.." <hit sound>")
end

something like that?

but I don't have any idea how to light up healthbar
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht