Blockland Forums > Modification Help

Is it a JVS Door?

Pages: << < (2/2)

wizzlemanizzle:

well, i suppose you could ask trader, but; what is this FOR?

Dglider:

Im making a tool that opens a door when you hit the door with it.  Sort of like an universal key.  It would get you through the door wether it was yours or not.  It just kinda opens the door, and sets it uncolliding and unraycasting.  Then reverses the process.  Only problem is I need to make it tell the difference between a door and a regular brick.  I don't want you to be able to just hit any old brick and walk through.

Plornt:

Try,
--- Code: ---%contentTypeID = %obj.contentTypeID();
if(%contentTypeID > -1)
{
      //Its JVS!
}

--- End code ---


Dglider:

It worked! :D

Pixelated brown circles 4 u!  :cookie: :cookie: :cookie: :cookie:

Pages: << < (2/2)

Go to full version