Still none of the buttons work.
GlobalImportScript("SObjTest.lua")
ImportScript("Library/LibTable.lua")
ImportScript("SZone.lua")
ImportScript("2_B.lua")
l_0_0 = 60
MissionSetup = function()
local l_1_0 = 270
local l_1_1 = -110
local l_1_2 = 6.4000000953674
AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
LoadAnimationGroup("G_Johnny")
LoadAnimationGroup("Nemesis")
PedSetTypeToTypeAttitude(0, 13, 1)
PedSetTypeToTypeAttitude(1, 13, 3)
PedSetTypeToTypeAttitude(2, 13, 2)
PedSetTypeToTypeAttitude(3, 13, 1)
PedSetTypeToTypeAttitude(4, 13, 2)
PedSetTypeToTypeAttitude(5, 13, 2)
PedSetTypeToTypeAttitude(6, 13, 2)
PedSetTypeToTypeAttitude(7, 13, 2)
PedSetTypeToTypeAttitude(8, 13, 2)
PedSetTypeToTypeAttitude(9, 13, 2)
PedSetTypeToTypeAttitude(10, 13, 2)
PedSetTypeToTypeAttitude(11, 13, 1)
PedSetPedToTypeAttitude(Gary, 13, 0)
PedSetPedToTypeAttitude(Gary, 1, 1)
PedSetPedToTypeAttitude(Gary, 2, 1)
PedSetPedToTypeAttitude(Gary, 3, 1)
PedSetPedToTypeAttitude(Gary, 4, 1)
PedSetPedToTypeAttitude(Gary, 5, 1)
PedSetPedToTypeAttitude(Gary, 6, 1)
PedSetPedToTypeAttitude(Gary, 7, 1)
PedSetPedToTypeAttitude(Gary, 8, 1)
PedSetPedToTypeAttitude(Gary, 9, 1)
PedSetPedToTypeAttitude(Gary, 10, 1)
PedSetPedToTypeAttitude(Gary, 11, 1)
PedSetPedToTypeAttitude(Gary, 12, 1)
end
TL_Buttons = function()
if IsButtonPressed(2, 0) then --"and" not then if
px,py,pz = PlayerGetPosXYZ()
TextPrintString("Player Pos: "..px..", "..py..", "..pz.."Area:"..AreaGetVisible(), 4, 2)
Wait(1000)
elseif IsButtonPressed(14, 0) then
PedSetActionNode(gPlayer, "/Global/G_Johnny/Cinematic/ThroatGrab", "Act/Anim/G_Johnny.act")
Wait(1000)
end
end
TL_Buttons2 = function()
if IsButtonPressed(1, 0) then --"and" not then if
px,py,pz = PlayerGetPosXYZ()
TextPrintString("Player Pos: "..px..", "..py..", "..pz.."Area:"..AreaGetVisible(), 4, 2)
Wait(1000)
elseif IsButtonPressed(15, 0) then
PedSetActionNode(gPlayer, "/Global/Nemesis/HeavyAttacks/SuperUppercut", "Act/Anim/Nemesis.act")
Wait(1000)
end
end
main = function()
Load("Act/Dialog.act")
Load("Act/Debug.act")
F_TableInit()
CreateThread("TL_Buttons")
CreateThread("TL_Buttons2")
gMissionRunning = true
while gMissionRunning do
UpdateTextQueue()
TL_Buttons()
TL_Buttons2()
Wait(0)
end
end
--[[
main = function()
repeat
TL_Buttons() --just put everything you want to repeat in your TL_Buttons function
Wait(0)
until not Alive
end
MissionCleanup = function()
EnablePOI()
gMissionRunning = false
end
--]]