Do the function MoveUp(e,v) still work.
I haven't work for a long time on one of my maps, and today when i want to work on it , i found that my rocket script do not work no more. i use the function MoveUp(e,v) to get the rocket up in the air. but now it does not work no more.
Here is the script that used to work, and now it doesn't.
op = 0
snd1 = 0
function rocket_init(e)
LoadGlobalSound("audiobank\\mysounds\\rocket.wav",0)
end
function rocket_main(e)
Prompt(GetPlayerDistance(e))
--g_Entity[e]['y']
--PromptLocal(e,str)
if GetPlayerDistance(e) < 1000 and op == 0 then
op = 1
snd1 = 1
end
if snd1 == 1 then
PlaySound(e,0)
snd1 = 0
end
if op == 1 then
MoveUp(e,900)
--op = 0
end
if GetPlayerDistance(e) > 30000 then
Destroy(e)
end
end
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