luw630 How do I cheat? Reputation: 0
Joined: 15 May 2016 Posts: 1
|
Posted: Sun May 15, 2016 5:01 pm Post subject: can i draw a d3d line use lua script |
|
|
i want to used ce in game draw a Sightline. just flow mouse move postion draw a line.but i do't know how to createline.I tried using Sprite,but it will complicated.here was my script
while true do
local processlist = getProcesslist()
if processlist ~= nil then
for k,v in pairs(processlist) do
if v == "Frame.exe" then
processid = k
break
end
end
end
--p.loadFromFile([[C:\Users\Dell 15 R\Desktop\crossh19.png]])
if processid > 0 then
Gameprocess = openProcess(processid)
d3dhook = createD3DHook()
if d3dhook ~= nil then
print("d3dhook creat")
TexturePicture = createPicture()
TexturePicture.loadFromFile([[Bullet.png]])
lineTexture = d3dhook.createTexture(TexturePicture)
-- line = d3dhook.createLine(TexturePicture) ?????
if lineTexture ~= nil then
print("createSprite")
d3dhook_sprite=d3dhook.createSprite(lineTexture)
else
print("lineTexture nil")
end
end
break
end
sleep(30)
end
|
|