tModLoader How can I made yoyo shoot projectiles?

Maoz

Terrarian
I've been having this issue of how to do it, but I just can't since you can only add one projectile only to yoyo which is the yoyo itself.

But adding two?, like how?
 
Wat did you do because it doesn't work for me
I put in this codes:

int a = Projectile.NewProjectile(projectile.position.X, projectile.position.Y, projectile.velocity.X, projectile.velocity.Y, ProjectileID.GreenLaser, (int)((double)projectile.damage * 0.1), projectile.knockBack * 1, projectile.owner, 1, 0);

Re-test it again if its not working, because I put this on 'comment'.
 
I put in this codes:

int a = Projectile.NewProjectile(projectile.position.X, projectile.position.Y, projectile.velocity.X, projectile.velocity.Y, ProjectileID.GreenLaser, (int)((double)projectile.damage * 0.1), projectile.knockBack * 1, projectile.owner, 1, 0);

Re-test it again if its not working, because I put this on 'comment'.
Tnx it works now
 
i dont know much about coding, so... where do i put that other code? Also, how do i make it shoot the projectile by using the number ID?
[doublepost=1556661620,1556661427][/doublepost]
i dont know much about coding, so... where do i put that other code? Also, how do i make it shoot the projectile by using the number ID?

also, do i put this code in the yoyo, or the projectile? (probably the projectile)
 
c:\Users\Fooster\Documents\My Games\Terraria\ModLoader\Mod Sources\Foosterium\Projectiles\GraniteYoyoProjectile.cs(34,4) : error CS1501: No overload for method 'NewProjectile' takes 0 arguments


this happened
 
Back
Top Bottom