ReXXuZ
-
Posts
10 -
Joined
-
Last visited
Posts posted by ReXXuZ
-
-
1 hour ago, ReXXuZ said:
the key opens but does not close again
help me please
-
1 hour ago, <~KaMiKaZe~> said:
function hydrasm( player ) if isPedInVehicle (player) then addEventHandler ( "onVehicleExit", root, destroy ) local veh = getPedOccupiedVehicle(player) local id = getElementModel ( veh ) if id == 520 then local x,y,z = getElementPosition(player) local smoke = createObject(2780, x, y, z) local smoke2 = createObject(2780, x, y, z) setElementCollisionsEnabled (smoke, false) setElementCollisionsEnabled (smoke2, false) attachElements(smoke, veh,5,-1,-1) attachElements(smoke2, veh,-5,-1,-1) setElementAlpha(smoke, 0) setElementAlpha(smoke2, 0) end end end --addEventHandler ( "onVehicleEnter", getRootElement(), hydrasm ) function destroy() local smokes = getAttachedElements(source) for i,v in ipairs (smokes) do detachElements (v, source) destroyElement(v) end end function bind( player ) bindKey ( player, "H", "down", hydrasm ) -- bind the player's F1 down key-- bind the player's fire down and up control end addEventHandler ( "onVehicleEnter", getRootElement(), bind )
the key opens but does not close again
-
1 hour ago, <~KaMiKaZe~> said:
function hydrasm( player ) if isPedInVehicle (player) then local veh = getPedOccupiedVehicle(player) local id = getElementModel ( veh ) if id == 520 then local x,y,z = getElementPosition(player) local smoke = createObject(2780, x, y, z) local smoke2 = createObject(2780, x, y, z) setElementCollisionsEnabled (smoke, false) setElementCollisionsEnabled (smoke2, false) attachElements(smoke, veh,5,-1,-1) attachElements(smoke2, veh,-5,-1,-1) setElementAlpha(smoke, 0) setElementAlpha(smoke2, 0) end end end addEventHandler ( "onVehicleEnter", getRootElement(), hydrasm )
you finally get a bindkey
-
1 hour ago, <~kamikaze~> said:
ne demek istiyorsun ?
I want out of the wings of the smoke
-
1 hour ago, <~kamikaze~> said:
you can attach the object "CJ_SMOKE_MACH" (ID 2780) to the hydra and that going to be a good effect. This is a example :
- function hydrasm( player )
- if isPedInVehicle (player) then
- local veh = getPedOccupiedVehicle(player)
- local id = getElementModel ( veh )
- if id == 520 then
- local x,y,z = getElementPosition(player)
- local smoke = createObject(2780, x, y, z)
- setElementCollisionsEnabled (smoke, false)
- attachElements(smoke, veh,0,0,0) --Here you can set the position of the effect (for default the effect going to be in the center of the hydra).
- end
- end
- end
- addEventHandler ( "onVehicleEnter", getRootElement(), hydrasm )
I want you out of the wings of the smoke Can you do it? please
-
help me plase
-
1 hour ago, Tails said:
You could attach a smoke effect
https://wiki.multitheftauto.com/wiki/CreateEffect
Why not learn and do it yourself? This forum isn't for script requests, it's for help. We can only help you if you get stuck with your code.
do you please
-
1 hour ago, TheMOG said:
I think you can replace an object dff then attach the object to the hydra. I think there is no other way.
you make me this script ?
-
hello i want hydra to smoke out of its wings
help hydra smoke script
in Scripting
Posted
is there someone who wants to help?