| Blockland Forums > Modification Help |
| RC Tank - Help Needed |
| << < (3/5) > >> |
| SWAT One:
--- Quote from: MARBLE MAN on May 01, 2012, 08:20:20 PM --- --- Code: ---{ %projectile = TANKSHELLProjectile; %p = new Projectile() { dataBlock = %projectile; initialVelocity = "0 0 0"; //shell direction and speed initialPosition = %obj.getPosition(); //shell launch position sourceObject = %obj.TankerOwner.player; sourceSlot = %slot; client = %obj.TankerOwner; }; --- End code --- PLEASE HELP --- End quote --- Change the velocity numbers to what you need. initialPosition = %obj.getPosition(); //shell launch position sourceObject = %obj.TankerOwner.player; Um, this looks like you are firing from the player that controls the tank. Also there could be a line somewhere that when you dismount, the projectile automatically explodes. You need to get rid of this so you don't fire an automatically exploding shell in your face. Also you will need to make sure that the shell matches with the size of your tank. Using the tank shell from a tank half the normal one's size would be ridiculous. |
| MARBLE MAN:
--- Quote from: SWAT One on May 02, 2012, 09:53:32 PM ---Change the velocity numbers to what you need. --- End quote --- I have done that --- Quote from: SWAT One on May 02, 2012, 09:53:32 PM ---initialPosition = %obj.getPosition(); //shell launch position sourceObject = %obj.TankerOwner.player; Um, this looks like you are firing from the player that controls the tank. --- End quote --- Nope, but if you add anything or change the position value, it goes to the map 0,0,0 --- Quote from: SWAT One on May 02, 2012, 09:53:32 PM ---Also there could be a line somewhere that when you dismount, the projectile automatically explodes. You need to get rid of this so you don't fire an automatically exploding shell in your face. Also you will need to make sure that the shell matches with the size of your tank. Using the tank shell from a tank half the normal one's size would be ridiculous. --- End quote --- There is- it deletes %p from the mission You didnt answer my question about making the cannon fire from above the tank |
| Lugnut:
--- Quote from: MARBLE MAN on May 02, 2012, 10:19:56 PM ---I have done that Nope, but if you add anything or change the position value, it goes to the map 0,0,0 There is- it deletes %p from the mission You didnt answer my question about making the cannon fire from above the tank --- End quote --- You didn't ASK that question! |
| MARBLE MAN:
--- Quote from: Lugnut1206 on May 03, 2012, 12:41:14 AM ---You didn't ASK that question! --- End quote --- Well, the 1st problem is that :P I just forgot to explain.. Let me edit that... |
| MARBLE MAN:
Locking if no one posts in 1 week....... |
| Navigation |
| Message Index |
| Next page |
| Previous page |