Author |
Message |
PX85
Joined: Sat May 14, 2011 5:41 pm Posts: 16 Location: Behind you.
|
Negative mass?
I'm trying to make a device that can lower an actors mass, to make flight easier. ^^ Sadly, I learned that you cannot simply put in "Mass = -5". The coding works, I tried it with positive mass. I wanted to know... Is it possible to lower mass using LUA? (tl;dr? )
|
Sun Jun 19, 2011 3:57 am |
|
|
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
Re: Negative mass?
Yeah, you can do pretty much anything with lua right now.
But what exactly are you trying to do? A gun that when fired lowers the mass of the actor for a period of time or something like that?
|
Sun Jun 19, 2011 3:59 am |
|
|
PX85
Joined: Sat May 14, 2011 5:41 pm Posts: 16 Location: Behind you.
|
Re: Negative mass?
I'm trying to make something like a shield. You can hold it, but it can't fire. I want it to give the actor negative mass for as long as they hold it. Is THAT possible? O_o
|
Sun Jun 19, 2011 4:03 am |
|
|
PX85
Joined: Sat May 14, 2011 5:41 pm Posts: 16 Location: Behind you.
|
Re: Negative mass?
I'm trying to make a device that can lower an actors mass, to make flight easier.
I've been wording everything wrong, probably. Here is what I want to know,
If you can make a devices have negative mass at ALL times (and if that can lower the mass of an actor if in possession of said device, not to negative values, but possibly to 0.001)
I tried to include everything I wanted to know there. Sorry of that makes no sense >_<
|
Sun Jun 19, 2011 4:08 am |
|
|
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
Re: Negative mass?
Any object that has any type of mass WILL have the same mass always, unless you change it with lua at some point in game. And if an actor holds that object, that mass will add up to the total mass of the actor, so, if you give him a shield with negative mass, it's mass will get reduced by an X amount.
Now, if you want to make the mass of any actor who holds it become something like 0.0001 you would need to use lua.
|
Sun Jun 19, 2011 4:13 am |
|
|
PX85
Joined: Sat May 14, 2011 5:41 pm Posts: 16 Location: Behind you.
|
Re: Negative mass?
Alright, thanks ^^ Now I need to learn how to script LUA.
|
Sun Jun 19, 2011 4:17 am |
|
|
neroe23
Joined: Tue Mar 10, 2009 7:16 pm Posts: 102
|
Re: Negative mass?
Maybe you just can make a lua code for the shield that seeks the mass of the holder and sets it to 0.001 kg as long as the shield is held.
|
Fri Jun 24, 2011 11:52 am |
|
|
CCS
Joined: Thu Jan 07, 2010 1:54 am Posts: 99 Location: St. Elsewhere
|
Re: Negative mass?
Quote: Make the mass negative. It does work. If you don't get errors, it does work, you just need a higher number. Would this be like finding the sum of the actor's total mass (and desired equipment) and then some number higher than that mass, to make the negative value? Just in case - an example Actor Mass + Equip = 24. The effect on actor is to be half the weight, so: (24/2) + 24 = 36 Shield Mass = -(36)
|
Fri Jul 22, 2011 5:00 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: Negative mass?
Set it to negative 200 or so, that should pretty well outweigh most actors.
I promise that, unless a significant change has been made to the base physics engine since not-many builds ago, holding a negative mass item anywhere in your inventory will decrease your effective weight.
|
Fri Jul 22, 2011 8:23 pm |
|
|
|