Object weight check

For builders to discuss and ask building questions.
Post Reply
User avatar
Duranamir
Sword Grand Master
Sword Grand Master
Posts: 740
Joined: Thu Nov 27, 2003 11:58 am
Location: Skull port

Object weight check

Post by Duranamir » Thu Sep 30, 2010 12:47 pm

Is there a way of checking the weight of an object in code ? Either something that comes back with a number or probably more realistically an if check i.e. if object.weight > 10.

Adrian
User avatar
Harroghty
Staff
Staff
Posts: 9695
Joined: Tue Jul 27, 2004 5:38 pm

Re: Object weight check

Post by Harroghty » Thu Sep 30, 2010 3:01 pm

You can use an object apply to modify the weight of an object (OBJWEIGHT), but I am not sure that a check exists to inspect the object's weight.

You could do this with a program though? It all depends on your situation, but you could make the weight a value5bit deal if you just had to weigh one specific item or a few specific items.
"A man may die yet still endure if his work enters the greater work, for time is carried upon a current of forgotten deeds, and events of great moment are but the culmination of a single carefully placed thought." - Chime of Eons
User avatar
Duranamir
Sword Grand Master
Sword Grand Master
Posts: 740
Joined: Thu Nov 27, 2003 11:58 am
Location: Skull port

Re: Object weight check

Post by Duranamir » Thu Sep 30, 2010 5:24 pm

What i am after is something i can potentially use on any existing object. I guess i am going to have to ask Mask nicely to see if it can be added.

Adrian
User avatar
Harroghty
Staff
Staff
Posts: 9695
Joined: Tue Jul 27, 2004 5:38 pm

Re: Object weight check

Post by Harroghty » Thu Sep 30, 2010 9:32 pm

That's the way to go!
"A man may die yet still endure if his work enters the greater work, for time is carried upon a current of forgotten deeds, and events of great moment are but the culmination of a single carefully placed thought." - Chime of Eons
Post Reply