View unanswered posts | View active topics It is currently Sun Dec 29, 2024 5:46 am



Reply to topic  [ 9 posts ] 
 Negative mass? 
Author Message
User avatar

Joined: Sat May 14, 2011 5:41 pm
Posts: 16
Location: Behind you.
Reply with quote
Post 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? :-o )


Sun Jun 19, 2011 3:57 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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
Profile
User avatar

Joined: Sat May 14, 2011 5:41 pm
Posts: 16
Location: Behind you.
Reply with quote
Post 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
Profile
User avatar

Joined: Sat May 14, 2011 5:41 pm
Posts: 16
Location: Behind you.
Reply with quote
Post 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
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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
Profile
User avatar

Joined: Sat May 14, 2011 5:41 pm
Posts: 16
Location: Behind you.
Reply with quote
Post Re: Negative mass?
Alright, thanks ^^

Now I need to learn how to script LUA. :dead:


Sun Jun 19, 2011 4:17 am
Profile
User avatar

Joined: Tue Mar 10, 2009 7:16 pm
Posts: 102
Reply with quote
Post 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. :D


Fri Jun 24, 2011 11:52 am
Profile
User avatar

Joined: Thu Jan 07, 2010 1:54 am
Posts: 99
Location: St. Elsewhere
Reply with quote
Post 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
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.027s | 13 Queries | GZIP : Off ]