hi there! i have request and i think it's easy.
i have used this great script by smallg:
--smallg
--script to read a note/paper found in game
--image must be in folder "scriptbank\images\note" & named "000.png" / "001.png" / "002.png" etc
--how far away from note it can be read
local use_range = 120
--key press to read note
local use_key = "e"
--maximum notes to display (use key will cycle through)
local max_page = 1
local pressed = 0
local reading = {}
function note_init(e)
LoadImages("safehouse9",0)
reading[e] = 0
end
function note_main(e)
if GetPlayerDistance(e) <= use_range then
if reading[e] == 0 then
PromptLocal(e,"Press E to read mission instructions")
if GetInKey() == use_key and pressed == 0 then
Hide(e)
pressed = 1
reading[e] = 1
SetImageAlignment(0)
SetImagePosition(50,50)
ShowImage(0)
end
elseif reading[e] >= 1 then
if GetInKey() == use_key and pressed == 0 then
pressed = 1
HideImage(reading[e] - 1)
reading[e] = reading[e] + 1
if reading[e] > max_page then
reading[e] = 0
Show(e)
else
ShowImage(reading[e] - 1)
end
end
end
else
if reading[e] > 0 then
HideImage(reading[e] - 1)
reading[e] = 0
Show(e)
end
end
if pressed == 1 and GetInKey() == "" then
pressed = 0
end
end
function note_exit(e)
end
when you attach this script to an entity like a paper you can press e to pick it up and then you see a picture. i have made some different pictures of the player holding a folder and a cell phone.
you can see in the pictures attached that the player does not lower the gun. usually this isn't necassary but with my pictures it is essintial to let the player lower the gun or it looks like he has three hands. what command must be added to the script to make the player lower the gun (like pressing the "0" key in game) as long as he looks at the picture and raise the gun again after he put it away. this last task is optional.
can you help me with this?
screenshots:
01: this is how it looks like before the folder is taken by pressing "E"
02: when he holds the cell phone it looks weird.
03: here it's not so bad but you can see the "third" arm with the gun.
http://www.nuncio-rap.de
intel core i5-3570K CPU @ 3.40GHz; 8GB RAM // NVIDIA GeForce GTX560Ti