Need a bit of LUA/ODF help.
Posted: Thu Jul 01, 2010 3:59 pm
OK, I am trying to do 3 things:
1. The ol' shoot panel, close door: I have an animation set up in zero editor, and this is the code I stuck under scriptpostload (yes, I named the object panel in ZE) and am using:
OnObjectKillName(PlayAnimDown, "panel")
function PlayAnimDown()
PauseAnimation("closedoor");
RewindAnimation("closedoor");
PlayAnimation("closedoor");
end
Problem is, this does nothing when I destroy the Panel ingame.
2. I also have some turret troubles, firstly I am using the clone wars era and the tur_bldg_chaingun_tripod is missing its sounds, I've tried a few things but I'm thinking I should just replace this:
TurretYawSound = "turret_whir_yaw_lp defer"
TurretYawSoundPitch = "0.7"
TurretPitchSound = "turret_whir_pitch_lp defer"
TurretPitchSoundPitch = "0.7"
TurretAmbientSound = ""
TurretActivateSound = "vehicle_equip defer"
TurretDeactivateSound = "vehicle_equip defer"
TurretStartSound = ""
TurretStopSound = ""
But am unsure exactly what to replace it with.
3. I am trying to set up a control chair so that it controls a turret remotely, but I'm not sure what I need to put in my LUA/ODF to make this work. A control chair doesn't have to be linked to more than one turret, or have more than one control chair, right?
EDIT: I believe I have solved #3 and #1, thought #2 remains an issue
1. The ol' shoot panel, close door: I have an animation set up in zero editor, and this is the code I stuck under scriptpostload (yes, I named the object panel in ZE) and am using:
OnObjectKillName(PlayAnimDown, "panel")
function PlayAnimDown()
PauseAnimation("closedoor");
RewindAnimation("closedoor");
PlayAnimation("closedoor");
end
Problem is, this does nothing when I destroy the Panel ingame.
2. I also have some turret troubles, firstly I am using the clone wars era and the tur_bldg_chaingun_tripod is missing its sounds, I've tried a few things but I'm thinking I should just replace this:
TurretYawSound = "turret_whir_yaw_lp defer"
TurretYawSoundPitch = "0.7"
TurretPitchSound = "turret_whir_pitch_lp defer"
TurretPitchSoundPitch = "0.7"
TurretAmbientSound = ""
TurretActivateSound = "vehicle_equip defer"
TurretDeactivateSound = "vehicle_equip defer"
TurretStartSound = ""
TurretStopSound = ""
But am unsure exactly what to replace it with.
3. I am trying to set up a control chair so that it controls a turret remotely, but I'm not sure what I need to put in my LUA/ODF to make this work. A control chair doesn't have to be linked to more than one turret, or have more than one control chair, right?
EDIT: I believe I have solved #3 and #1, thought #2 remains an issue