local tpE = nil function tpswitch_init(e) end function tpswitch_main(e) if tpE == nil then if GetGamePlayerControlThirdpersonEnabled() == 1 then tpE = GetGamePlayerControlThirdpersonCharactere() end else if g_KeyPressQ == 1 then if epress == 0 then epress = 1 if GetGamePlayerControlThirdpersonEnabled() == 1 then Hide(tpE) CollisionOff(tpE) SetGamePlayerControlThirdpersonEnabled(0) --PromptDuration("swapped to first person",2000) else SetGamePlayerControlThirdpersonEnabled(1) Show(tpE) CollisionOn(tpE) ttcharacterindex=GetGamePlayerControlThirdpersonCharacterIndex() SetCharAnimControlsLeaping(ttcharacterindex,0) --PromptDuration("swapped to third person",2000) end end else epress = 0 end end end