Forum

> > CS2D > Scripts > Use spawnprojectile
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Use spawnprojectile

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Use spawnprojectile

CaptainAmnesia
User Off Offline

Zitieren
Hi, I want to know how you can create a projectile , at a different angle than watching my figure
1
parse("spawnprojectile "..id.." 75 "..player(id,"x").." "..player(id,"y").." 1000 "..player(id,"rot"))

for example, I would like to projectile of RPG , scored to the right page

Thanks for help!

alt Re: Use spawnprojectile

DC
Admin Off Offline

Zitieren
cs2d cmd spawnprojectile

Just change the direction parameter. In your sample it's the last one. This part:
1
player(id,"rot")
Just replace that with the angle you want (0-360°).
CS2D's angles start with 0 at top and go clockwise.

IMG:https://www.carnagecontest.com/img/help_angles.gif


So right would be 90°:
1
parse("spawnprojectile "..id.." 75 "..player(id,"x").." "..player(id,"y").." 1000 90")
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht