Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Is it a JVS Door?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Is it a JVS Door? (Read 661 times)
Dglider
March 29, 2011, 06:20:33 PM
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?
Ad Bot
Advertisement
wizzlemanizzle
March 29, 2011, 06:32:19 PM
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?
Dglider
March 29, 2011, 06:37:11 PM
No, I just need it to tell the difference between an object that is using the Content System, and one that is not.
wizzlemanizzle
March 29, 2011, 06:42:56 PM
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? :/
Dglider
March 29, 2011, 06:48:04 PM
Yeah, I've been looking through it for the past half hour, but I can't find anything.
wizzlemanizzle
March 29, 2011, 06:52:04 PM
well, i suppose you could ask trader, but; what is this FOR?
Dglider
March 29, 2011, 06:57:20 PM
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
March 29, 2011, 07:00:48 PM
Try,
Code:
[Select]
%contentTypeID = %obj.contentTypeID();
if(%contentTypeID > -1)
{
//Its JVS!
}
Dglider
March 29, 2011, 07:07:09 PM
It worked! :D
Pixelated brown circles 4 u!
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Is it a JVS Door?