Forum

> > CS2D > Scripts > Script Question
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Script Question

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Script Question

Precel97
User Off Offline

Zitieren
Hi all! I don't know how to do moving images...
I mean : image .. maybe flare walking behind you. something like x-1...Can someone help?

alt Re: Script Question

Flacko
User Off Offline

Zitieren
Use the imagepos() function with proper parameters along with the "always" hook.

alt Re: Script Question

Flacko
User Off Offline

Zitieren
This displays an image above a player's head.

1
2
3
4
5
6
7
8
9
10
11
image_id = image("gfx/flare.bmp",0,0,1)

addhook("always","_always")
function _always()
	imagepos(image_id,player(1,"x"),player(1,"y")-24,0)
end

addhook("startround","_startround")
function _startround()
	image_id = image("gfx/flare.bmp",0,0,1)
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht