Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - $trinick

Pages: 1 ... 52 53 54 55 56 [57] 58 59 60 61 62 ... 368
841
Modification Help / Re: Why is it not echoing %pl.rads
« on: July 09, 2015, 09:48:54 PM »
That's like comparing %obj.getDatablock() == 0. The compiler will optimize the operands and think it's an integer (and non-numeric strings default to 0)

if(%object.getDatablock() == nameToID("ScrapElectronicsBrickData"))

(or .getID(), up to you)

Whoops. You're right. I forgot that Torque doesn't tokenize identifiers because it was made by monkeys. Edited the original code.

842
Modification Help / Re: Why is it not echoing %pl.rads
« on: July 09, 2015, 09:30:35 PM »
Code: [Select]
function serverCmdLight(%client) {
    %player = %client.player;

    if(!isObject(%object = getWord(containerRaycast(%player.getEyePoint(), vectorAdd(%player.getEyePoint(), vectorScale(%player.getEyeVector(), 7)), $TypeMasks::FxBrickObjectType),0)))
        return;

    if(%object.getDatablock() == ScrapElectronicsBrickData.getID()) {
        //your code
    }
}

843
Modification Help / Re: Why is it not echoing %pl.rads
« on: July 09, 2015, 08:34:35 PM »
what do you mean by firstWord?
Edit NVM my friend told me that it wasnt a function

Huh? firstWord(%x) does the same thing as getWord(%x, 0). It's just easier to understand (I guess).

844
Modification Help / Re: Why is it not echoing %pl.rads
« on: July 09, 2015, 07:02:02 PM »
Code: [Select]
%stretch = vectorScale(%player.getEyeVector,7);

%stretch = vectorAdd(%start, vectorScale(%player.getEyeVector(), 7));

845
Modification Help / Re: Strings || Bricks
« on: July 08, 2015, 02:28:55 PM »
if(isObject(%brickGroup.client))

Forgot somethin'.

846
Off Topic / Re: 60 seconds
« on: July 08, 2015, 04:40:11 AM »
I was going to say I'd be married with no kids, but then I realized that there's no way my girlfriend would survive.

847
It's always impressive to me when these people get arrested and they're under 18. Like, that's taking stuff to the next level. You see people defeat the most advanced security systems in the world and evade detection by thousands of real world professionals, then they finally slip up and you find out that everyone was duped by a 17 year old. It's one thing to be 17 and deface the side of your local supermarket with graffiti, but this is really some next-level stuff.

848
Off Topic / Re: um... u can duplicate money
« on: July 07, 2015, 06:10:01 PM »
What's the process of measuring the % of the bill that's intact?

No idea. It may be possible for you to rip a bill in a jagged way and have both halves considered 51%, but you'd have to succeed more than half the time for it to be worth it.

849
Off Topic / Re: um... u can duplicate money
« on: July 07, 2015, 04:26:28 AM »
It has to be 51% in tact. We talked about this in my Economics class. The Treasury will take broken money as long as the bill is at least 51% in tact and return to you a new bill, so while a company is likely to reject your 2/3 of a bill, you can always mail it to the treasury and get a crisp new one.

850
It wasn't done by the person planting the brick, right? It can be easy to overlook stuff like if(%OwnerID != %obj.client.bl_id) when testing.

Try getting the brick's ID with /getid and running this console command:

%b=BadBrickTracker;%cnt=%b.getCount();for(%i=0;%i<%cnt;%i++)if(%b.getObject(%i).getID()==INSERT_ID) return call(echo,1);continue;echo(0);

If that echos 1, that brick is in the group (as it should be). If it echos 0, it isn't, and that needs to be corrected.

851
Instead of using both ::onPlant and ::onLoadPlant, you can just do ::onAdd since it covers both cases.

Except you only want planted bricks in that group. Using ::onAdd will include ghost bricks and the preview on the duplorcator. So I recommend using onPlant and onLoadPlant since they're the intended

Anyway, to get owner BLID use %brick.getGroup().BL_ID since if the owner isn't connected the brick's client object won't exist. That's likely your problem since I'm assuming you're loading a save without the builder connected.

852
Off Topic / Re: how long is your pecker? inb4 bird
« on: July 06, 2015, 03:46:24 PM »
He graduated the same year as me, but was younger than me, so roughly 18?

853
Off Topic / Re: how did your forth go? (GTFO CANADA)
« on: July 06, 2015, 05:06:07 AM »
got drunk with her and her and slept in a tent outside. cant say i remember too much of it.

17 y/o cop in training underage drinking w/ girlfriend

forget yeah, in five years you'll be arresting kids for doing exactly what you just did.

854
Off Topic / Re: how long is your pecker? inb4 bird
« on: July 06, 2015, 12:45:41 AM »
okay...?

I said that because you said you're "not claiming anything: it's true." You're making a claim regardless of whether or not it's true.

uh, i dunno if you're just blind or what, but i made the joke. it was a joke about your richard size, and more specifically your lack of confidence in it.

Please, please explain to me how you sarcastically apologizing for not knowing a lot about richards has anything to do with my richard size.



what lol? i posted that because i anticipated someone digging up a quote of me calling someone a richardwad or something and then posting it as if that makes me a hypocrite. it doesn't detract or even have much to do with the original statement.

This is called a tu quoque fallacy. Just because someone doesn't follow what they say, doesn't make their argument false. You're in the right here, buddy.

855
Off Topic / Re: how long is your pecker? inb4 bird
« on: July 06, 2015, 12:23:47 AM »
sorry i don't obsess over richard size enough to know the technical terms ¯\_(ツ)_/¯
not claiming anything: it's true

Well, first of all, a claim is just an assertion, not necessarily a wrong assertion. "The sky is blue" is a claim, but is also true. So the truthiness of a statement doesn't affect its status as a claim.

Second, that's not a joke about my richard size. I don't know how you perceived that. Once again, I think your perception is warped.

Pages: 1 ... 52 53 54 55 56 [57] 58 59 60 61 62 ... 368