manawydan Posted January 2, 2014 Posted January 2, 2014 it is possible to walk on water? any idea how to do? thank you! "Querer não é poder, mas tentar é avançar"!
'LinKin Posted January 3, 2014 Posted January 3, 2014 Walk on water.. Not sure. But I do know how to drive on water Need a clanwar script? Click here! Do you want some free scripts for your DD server? Visit my website.
Karuzo Posted January 3, 2014 Posted January 3, 2014 Hey, How bout : you create an object under the player where the player can walk ? But walking on water itself? No.
.:HyPeX:. Posted January 3, 2014 Posted January 3, 2014 You can create an invisible object and then walk over it.. My ingame nick is ~HyPeX~ BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager
xXMADEXx Posted January 3, 2014 Posted January 3, 2014 You can create an invisible object and then walk over it.. Did you even bother to read the replies? If you had, you would have seen that KRZO said this. The Ultimate Lua Tutorial! | MTA PHP SDK
manawydan Posted January 3, 2014 Author Posted January 3, 2014 Thanks guys, I'll try. "Querer não é poder, mas tentar é avançar"!
manawydan Posted January 3, 2014 Author Posted January 3, 2014 local Pe = { } Pe.R = {} Pe.L = {} CaminharAgua = function(P,c) local x,y,z = getElementPosition(P) Pe.R[P] = createObject(2001,x,y,z) Pe.L[P] = createObject(2001,x,y,z) --setElementCollisionsEnabled exports [ "bone_attach" ]:attachElementToBone(Pe.R[P],P,20,0,0,-1) exports [ "bone_attach" ]:attachElementToBone(Pe.L[P],P,19,0,0,-1) outputChatBox("lol",P) end addCommandHandler("agua",CaminharAgua) i try, but no work, with -1 and 0 any help? "Querer não é poder, mas tentar é avançar"!
50p Posted January 3, 2014 Posted January 3, 2014 As far as I know you can't walk on attached elements because once attached their collision data is lost. Besides, attached elements to the player will follow the player, so if player's in the water, the element is under water with them. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
TAPL Posted January 3, 2014 Posted January 3, 2014 Create the object in client side. get the position X, Y (No Z) of local player and set the position X, Y to the object and keep z position of the object at static number 0 or -1 or something like that and use the event onClientRender to keep the object attached under the player.
.:HyPeX:. Posted January 4, 2014 Posted January 4, 2014 You can create an invisible object and then walk over it.. Did you even bother to read the replies? If you had, you would have seen that KRZO said this. i did, he said underwater, i said invisible, you seriously need to get some glasses on. My ingame nick is ~HyPeX~ BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager
Saml1er Posted January 5, 2014 Posted January 5, 2014 That seems interesting, I'll put all my efforts in making it.
manawydan Posted January 5, 2014 Author Posted January 5, 2014 thank you, the player slides a little, but it works. -- water walk local obj = {} function WaterWalk() if obj[localPlayer] then local x,y,_ = getElementPosition(localPlayer) setElementPosition(obj[localPlayer],x,y,-.5) end end addEventHandler ("onClientRender",root,WaterWalk) function WaterOn() local px,py,_ = getElementPosition(localPlayer) obj[localPlayer] = createObject(1221,px,py,0) setElementAlpha(obj[localPlayer],0) end addCommandHandler("water",WaterOn) "Querer não é poder, mas tentar é avançar"!
Saml1er Posted January 5, 2014 Posted January 5, 2014 thank you, the player slides a little, but it works. -- water walk local obj = {} function WaterWalk() if obj[localPlayer] then local x,y,_ = getElementPosition(localPlayer) setElementPosition(obj[localPlayer],x,y,-.5) end end addEventHandler ("onClientRender",root,WaterWalk) function WaterOn() local px,py,_ = getElementPosition(localPlayer) obj[localPlayer] = createObject(1221,px,py,0) setElementAlpha(obj[localPlayer],0) end addCommandHandler("water",WaterOn) This works because itachi is using genjutsu.
manawydan Posted January 5, 2014 Author Posted January 5, 2014 hahaha nice "Querer não é poder, mas tentar é avançar"!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now