Wall climbing?
Posted: Thu Mar 18, 2010 8:39 am
is it possible to make a unit able to climb up wall and buildings? or some how make him a jet pack with no effect and just inetial push but that would work off walls to any ideas?
[RDH]Zerted wrote:Assuming there was only one of this unit and the AI will never go up the wall:
Put a region over the area you want the player to be able to climb. When the player enters the region, give that character an invisible jet pack. When the player leaves the region, take the jet pack away. I don't know if the game would have problems if you take a jet pack away from someone when they're using it.
I asked once if you could manipulate jetpack fuel through SetProperty, like you do with shields [SetProperty(unit, "CurShield", #)] and the general concensus was that you couldn't. How could you add or take away specific amounts, then? Or would you have to work with changing FuelRechargeRate?[RDH]Zerted wrote:It might be best to just always have the unit have a jet back and just give/take away its fuel or its fuel regen.
Code: Select all
local properties = {
--ControlSpeed = "jet 1.85 1.85 2.00"
{ name = "ControlSpeed", value = "jet 10.85 1.85 2.00"},
{ name = "JetJump", value = "8.0" },
{ name = "JetPush", value = "8.0" },
{ name = "JetAcceleration", value = "20.0" },
{ name = "JetEffect", value = "" },
{ name = "JetType", value = "hover" },
{ name = "JetFuelRechangeRate", value = "1" },
{ name = "JetFuelCost", value = "0.0" },
{ name = "JetFuelInitialCost", value = "0.0" },
{ name = "JetFuelMinBorder", value = "0.0" },
}
uf_changeClassProperties( uf_classes, properties )Code: Select all
local properties = {
{ name = "ControlSpeed", value = "jet 0.01 0.01 0.01"},
{ name = "JetJump", value = "0.1" },
{ name = "JetPush", value = "0" },
{ name = "JetAcceleration", value = "0" },
--{ name = "JetEffect", value = "0" },
{ name = "JetType", value = "hover" },
{ name = "JetFuelRechangeRate", value = "0" },
{ name = "JetFuelCost", value = "50" },
{ name = "JetFuelInitialCost", value = "50" },
{ name = "JetFuelMinBorder", value = "50" },
}
uf_changeClassProperties( uf_classes, properties )