i have this script on a floppy disk.
function stiffy_init(e)
movestiffy = 0
copystiffy = 0
CollisionOff(e)
Percentage = 0.00
end
function stiffy_main(e)
if movestiffy > 0 then
if movestiffy < 3 then
movestiffy = movestiffy + 1
end
if copystiffy < 1000 then
copystiffy = copystiffy + 1
Percentage = math.ceil((copystiffy/1000)*100)
Prompt('Copying Data ' ..Percentage..'%')
end
end
if PlayerDist < 80 and movestiffy == 0 then
Prompt ( 'Press e to insert disk' )
if g_KeyPressE == 1 then
movestiffy = 1
end
end
if movestiffy == 1 then
MoveBackward(e,150)
movestiffy = 2
end
if PlayerDist < 80 and movestiffy == 3 and copystiffy == 1000 then
Prompt ( 'Press e to remove disk' )
if g_KeyPressE == 1 then
movestiffy = 4
end
end
if movestiffy == 4 then
MoveForward(e,150)
movestiffy = 5
end
end
it is working like it should when i test it on an empty map in the first picture.
the script let the disk move forward and backwards in to the pc .
it works fine.
but as soon as i put the same script on the same entity in my map , in the second picture, then the script do not work at all.
i do not know why, i have tried everything but i can not get it to work at all in my map
would appreciate any help.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11