Author Topic: OnVehicleTouch  (Read 367 times)

I searched it on RTB and on these forums..
It turns out that someone made it, and it worked...
Could someone make this again??


Use zone events.
datablock fxDTSBrickData(TronnedVehicleBrickData)
{
   brickFile = "./2xCube.blb";
   category = "Baseplates";
   subCategory = "Cube";
   uiName = "";
};

Make that a zone brick that kills people in vehicles + the vehicle when it spawns... and i will accept your idea
« Last Edit: May 24, 2012, 06:33:28 PM by MARBLE MAN »

You are only making minor changes to the tron script, but you somehow need help for every little thing...

You are only making minor changes to the tron script, but you somehow need help for every little thing...
I have already made it kill players..
function TronnedVehicleBrickData::onPlant(%data, %obj)
{
   %obj.enableTouch = true;

   %enabled     = 1;
   %delay       = 0;
   %inputEvent  = "OnPlayerTouch";
   %target      = "Player";
   %outputEvent = "Kill";
   %obj.addEvent(%enabled, %delay, %inputEvent, %target, %outputEvent);
}

I left some functions out

Also, I know that I am editing stuff to make it what i want - STFU about it
If you say no, I will simply ignore your posts
« Last Edit: May 24, 2012, 07:04:54 PM by MARBLE MAN »