Page 1 of 1
Jetpack Fuel via LUA
Posted: Tue Nov 24, 2009 11:40 pm
by Fiodis
I know you can get an object's shield amount by CurShield, and tinker with it using SetProperty. Is there a way to do the same with jetpack fuel? Are they the same thing, LUA-wise?
Re: Jetpack Fuel via LUA
Posted: Tue Nov 24, 2009 11:41 pm
by RogueKnight
Fiodis wrote:I know you can get an object's shield amount by CurShield, and tinker with it using SetProperty. Is there a way to do the same with jetpack fuel? Are they the same thing, LUA-wise?
I would assume so, i believe there is a FC code for unlimited jetpack fuel.
Re: Jetpack Fuel via LUA
Posted: Wed Nov 25, 2009 8:19 am
by [TFA]Padawan_Fighter
Yes, but that's different, as not only does it give you unlimited fuel, it gives everyone jetpacks.
Re: Jetpack Fuel via LUA
Posted: Wed Nov 25, 2009 2:45 pm
by myers73
it also overides the jetpacks that units already have and replaces them with the default rep jetpack.
Re: Jetpack Fuel via LUA
Posted: Wed Nov 25, 2009 4:32 pm
by Fiodis
What I need is a meter that can be replenished via LUA, and I don't want to hijack the health bar. Energy bar you can't alter via LUA directly, and the shield bar would have some side effects (such as the unit having a shield) that I don't want. The jetpack seemed the only way to do it, to have a unit that has a jetpack, and jetpack fuel, and an insanely high amount of fuel necessary to activate.
So is it feasable to hijack the jetpack fuel meter for this purpose? Or is there some other meter I could use?
Actually, is there any way to create your own meter? I wouldn't think so, but I want to make sure.