| Blockland Forums > Modification Help |
| Constant RadiusImpulse force |
| << < (5/5) |
| Muffinmix:
--- Quote from: Space Guy on July 21, 2007, 02:21:12 AM --- --- Quote from: Muffinmix on July 19, 2007, 04:56:55 PM ---Didn't work, but that would be exactly what I need. --- Code: ---function ForceFeildGeneratordProjectile::onCollision(%this, %obj, %slot){ if(!%obj.client.isSuperAdmin && !%obj.client.isAdmin) return; %i = new Trigger() { position = %pos; rotation = "1 0 0 0"; scale = "3 24 3"; dataBlock = LastingImpulse; polyhedron = "0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 0.0000000 1.0000000"; }; schedule(2000,0,TriggerDelete,%i); } datablock TriggerData(LastingImpulse){ tickPeriodMS = 100; }; function LastingImpulse::OnEnter(%this, %trigger, %obj){ %obj.setVelocity(vectorAdd(%obj.getVelocity(),"0 0 500")); } function TriggerDelete(%obj){ %obj.delete(); } --- End code --- --- End quote --- You never specified what object to delete and had a few problems with the deleting. Also, fixed/changed stuff in the actual impulsing. --- End quote --- I tried it, it still didn't work. |
| MrPickle:
Is it ment to have that d? |
| Navigation |
| Message Index |
| Previous page |