Jump to content

Recommended Posts

N7eb function tasna3li object fi yed e player kol win yet7arek el player el object(wa9ra par ex) dima tab9a fi yedou. w ki imes el player marker mou3ayna.najem nthabet etha ken el object mawjoud wala la,Kenou mawjoud tsir 7aja ken mechou mawjoud tsir 7aja o5ra.Nchallah tkounou fhemtouni w merci :)

Link to comment
isElementAttachedToBone(element) : checks if element is attached to a bone. Server and client function.

element : Element which you want to check.

Returns true if element is attached to a bone, false otherwise.

addEventHandler("onMarkerHit", marker, 
function(hitElement) 
if (exports.bone_attach:isElementAttachedToBone(hitElement) == true) then 
--a3mel chfama 
end 
end 
) 

mech mthabet mel code

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...