Author Topic: Is it a JVS Door?  (Read 660 times)

What can I use to tell if an object is one of the JVS Content variety.

I'vs tried getclass but that just tells me it's a fxDTSBrick.
I also tried getdatablock but I don't know how to get it to tell me what the datablock IS.

Any advice?

umm, i dont know, if trader made it it might be, and if its compatible with the content system... are you asking how to tell if its a LEGITIMATE JVS content door? as in part of the packs?

No, I just need it to tell the difference between an object that is using the Content System, and one that is not.

have you tried looking into the .cs for any identifying factors? im not sure what, but theres got to be a few noteable differences beween it and other bricks maybe check for the presence of a variable? :/

Yeah, I've been looking through it for the past half hour, but I can't find anything.

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

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.

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

It worked! :D

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