Forum

> > CS2D > Scripts > Use spawnprojectile
Forums overviewCS2D overview Scripts overviewLog in to reply

English Use spawnprojectile

1 reply
To the start Previous 1 Next To the start

old Use spawnprojectile

CaptainAmnesia
User Off Offline

Quote
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!

old Re: Use spawnprojectile

DC
Admin Off Offline

Quote
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")
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview