got another, hopefully you can help, as Im no scripter.
--[[ LUA Script converted from FPSC to GameGuru by M.Fowler (c) 2017
Original FPI file can be found under:
F:\Program Files (x86)\The Game Creators\FPS Creator\Files\scriptbank\Bonus-Egypt\Dark lift-bamboo.fpi
]]
function darklift_bamboo_init(e)
state = 0 ;
end
function darklift_bamboo_main(e)
if state == 0 and (g_PlayerPosY - g_Entity[e]['y']) > == 10 and GetPlayerDistance(e) < 50 then
state = 6
CollisionOff(e)
end
if state == 1 then
MoveUp(e,1)
end
if state == 1 and RAYCASTUP == 20 100 then
state = 2
end
if state == 2 and GetPlayerDistance(e) > 55 and PLAYERASSOCIATED then
state = 3
UNASSOCIATEPLAYER
CollisionOn(e)
end
if state == 3 and (g_PlayerPosY - g_Entity[e]['y']) > == 10 and GetPlayerDistance(e) < 50 then
state = 7
CollisionOff(e)
end
if state == 4 then
MoveUp(e,-1)
end
if state == 4 and RAYCASTUP == 20 0 then
state = 5
end
if state == 5 and GetPlayerDistance(e) > 55 and PLAYERASSOCIATED then
state = 0
UNASSOCIATEPLAYER
CollisionOn(e)
end
if state == 6 and GetPlayerDistance(e) < 50 then
PlaySound(e,audiobank\Bonus-Egypt\lift up-bamboo.wav)
state = 1
ASSOCIATEPLAYER
end
if state == 6 and GetPlayerDistance(e) > 55 and PLAYERASSOCIATED then
state = 0
CollisionOn(e)
end
if state == 7 and GetPlayerDistance(e) < 50 then
PlaySound(e,audiobank\Bonus-Egypt\lift down-bamboo.wav)
state = 4
ASSOCIATEPLAYER
end
if state == 7 and GetPlayerDistance(e) > 55 and PLAYERASSOCIATED then
state = 3
CollisionOn(e)
end
if g_Entity[e]['activated'] == 1 then
state = 11
SetEntityActivated(e,0)
end
if state == 11 and (g_PlayerPosY - g_Entity[e]['y']) > == 100 then
state = 21
end
if state == 11 then
state = 31
end
if state == 21 and RAYCASTUP == 20 100 then
state = 3
end
if state == 21 then
state = 1
end
if state == 31 and RAYCASTUP == 20 0 then
state = 0
end
if state == 31 then
state = 4
end
PromptLocal (e,'state=' .. state )
end
function darklift_bamboo_exit(e)
end
--*** UNCONVERTED FPSC CONDITION KEYWORDS ***
function RAYCASTUP(e)
end
function PLAYERASSOCIATED(e)
end
--*** END OF UNCONVERTED FPSC CONDITION KEYWORDS ***
--*** UNCONVERTED FPSC ACTION KEYWORDS ***
function UNASSOCIATEPLAYER(e)
end
function ASSOCIATEPLAYER(e)
end
--*** END OF UNCONVERTED FPSC ACTION KEYWORDS ***
AMD Phenom x4 9850 2.70 Ghz , 6 Gb ram, 2GB EVGA Geforce GTX 750, Win 10 x64