Blockland Forums > Modification Help

Projectile Help

Pages: (1/2) > >>

Butler:

How do I script a driver in a vehicle being able to shoot something?

soba:

For advanced users - look at the tank turret code
For beginner users - http://forum.blockland.us/index.php?topic=51249.0

Butler:

Thank you, now, what joints do I need? Just a muzzlePoint?

Butler:

Ok, I got that working, but I don't know the projectile name of the gravity rocket apprently.

This is what I put in the server.cs:

--- Code: ---ShootOnClick_Projectile[0]=RocketGravity;
--- End code ---

This is the error I get:

--- Code: ---Object 'RocketGravity' is not a member of the 'GameBaseData' data block class
Add-Ons/Vehicle_Go_Kart/Support_shootOnClick.cs (99): Register object failed for object (null) of class Projectile.
Set::add: Object "0" doesn't exist
--- End code ---


Iban:

1. I don't know if the first code snippet is an object property or what, but I don't think that is valid syntax.

2. Then find out...

Projectile_GravityRocket/server.cs

--- Code: ---datablock ProjectileData(gravityRocketProjectile)
--- End code ---


Pages: (1/2) > >>

Go to full version