Blockland Forums > Modification Help
Need help finding a JVS indicator
Bloxxed:
--- Quote from: PNetwork2011 on June 29, 2011, 11:10:14 AM ---
--- Quote from: DrenDran ---
function iscontent(%brick)
{
if(strpos(16035.getDatablock().getname(),"content") != -1)
return 1;
else
return 0;
}
Return as 1 or 0 and if it returns as 1 make some code along with that to contentStart
--- End quote ---
--- End quote ---
You ripped that off Dren, you're just saying "oooh hurr der durp I'll just say I'm good at coding and copy someone else's code"
You're not good at scripting.
Xalos:
function isJVS(%this)
{
if(%this.getClassName() $= "fxDtsBrick")
return %this.getDatablock().category $= "JVS";
else if(%this.getClassName() $= "fxDtsBrickData")
return %this.category $= "JVS";
else
return 0;
}
Bloxxed:
Never mind, fixed, Thanks everyone who contributed.
<3
PNetwork2011:
--- Quote from: Bloxxed on June 29, 2011, 12:10:57 PM ---
You ripped that off Dren, you're just saying "oooh hurr der durp I'll just say I'm good at coding and copy someone else's code"
You're not good at scripting.
--- End quote ---
Double Barrel Quote.
--- Quote from: PNetwork2011 ---Quote from DrenDran:
--- End quote ---
Bloxxed:
--- Quote from: PNetwork2011 on June 29, 2011, 02:03:59 PM ---Double Barrel Quote.
--- End quote ---
--- Quote from: PNetwork2011 on June 28, 2011, 01:43:08 PM ---oh man DrenDran beat me to it
--- End quote ---
You're saying that you can script.