Blockland Forums > Modification Help

How to make a melee weapon push a vehicle.

Pages: (1/6) > >>

Dr.Tyler O.:

Kind of like what the hammer does. Basically I want my weapon, a golf club, to push a vehicle like the ball. How would one do this?

ThinkInvisible:

probably package onHit or whatever and if the weapon is golfClub addvelocity to the vehicle

Ipquarx:

That would have to be one damn big golf club to hit the ball, that things friggin huge.

But think's right on this one.

Dr.Tyler O.:


--- Quote from: ThinkInvisible on June 09, 2012, 02:48:14 PM ---probably package onHit or whatever and if the weapon is golfClub addvelocity to the vehicle

--- End quote ---

How would I do this? I'm kind of new to Torque Scripting and the most I can do really is make basic weapons and vehicles.

Deoxys And One Noob:


--- Quote from: Dr.Tyler O. on June 09, 2012, 04:20:15 PM ---How would I do this? I'm kind of new to Torque Scripting and the most I can do really is make basic weapons and vehicles.

--- End quote ---


package onHit
{
  //code here
};
activatePackage(onHit);


I'm not sure on that other one. Maybe this.


golfClub.addvelocity();


Pages: (1/6) > >>

Go to full version