Blockland Forums > Modification Help
Overall Help
<< < (2/3) > >>
MrPickle:
O.o
Monty:
The Block Mesa Research Team!
MrPickle:
Your starting to scare me.
Aloshi:
Yes, that would make a trigger. But that would make a small trigger. So if  you hit a 64x64 with it you'd need to go to the center to enter said trigger...
Game master pro:

--- Quote from: |rudyman| on June 13, 2007, 11:54:28 AM ---Fixed:


--- Quote ---function blah::onCollision(%this,%obj,%col,%fade,%pos,%normal)
{
   if(!%obj.client.isSuperAdmin)
   {
   messageclient(%obj.client,"",'Sorry, your not a Super Admin.');
    return;
   }

%data = BrickData;
   //I made up BrickData because i don't know the name of the datablock for bricks
   // change if it you want it to work

   if(%col.getClassname !$= "fxDTSBrick")
      messageclient(%obj.client,"",'This is not a brick');
   else
   {
// the thingy for setting trigger size
%i = new Trigger() {
            position = %pos;
            rotation = "1 0 0 0";
            scale = "3 24 3";
            dataBlock = Nameoftrigger;
            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";
         };
}

--- End quote ---

But you have to add ephi's bit of script to set the trigger's size to that of the brick.

--- End quote ---

Actually fixed.
--- Quote from: MrPickel on June 13, 2007, 12:02:06 PM ---why change if(getSubStr(%col.dataBlock,0,5) !$= "brick") to yours? My way of checking for a brick worked fine just want to know why you changed it?

--- End quote ---
It's unnecessary D:
Navigation
Message Index
Next page
Previous page

Go to full version