Jump to content

Attach Player to Player


Namorek

Recommended Posts

varez? Sorry you because wast quarrel Very sorry you!

Doesn't work my Code!

function attach ( thePlayer, command, who )
local arrest =  getPlayerFromName ( who )
attachElements ( arrest, thePlayer, 0, 2, 0 )
end
addCommandHandler ( "arrest", attach )
 
function dettach ( thePlayer, command, who )
local unarrest =  getPlayerFromName ( who )
detachElements ( unarrest, thePlayer, 0, 2, 0 ) 
end
addCommandHandler ( "unarrest", dettach )

Help me!

Link to comment
  • Discord Moderators

How about this:

function attach ( thePlayer, command, who )
local arrest =  getPlayerFromName ( who )
attachElements ( arrest, thePlayer, 0, 2, 0 )
end
addCommandHandler ( "arrest", attach )
 
function dettach ( thePlayer, command, who )
local unarrest =  getPlayerFromName ( who )
detachElements ( unarrest, thePlayer ) 
end
addCommandHandler ( "unarrest", dettach )

detachElements hasn't got code for additional coordinates - You should have read the function on wiki.

detachElements ( element theElement, [ element theAttachToElement ] ) -- no coordinate arguments

Link to comment
How about this:
function attach ( thePlayer, command, who )
local arrest =  getPlayerFromName ( who )
attachElements ( arrest, thePlayer, 0, 2, 0 )
end
addCommandHandler ( "arrest", attach )
 
function dettach ( thePlayer, command, who )
local unarrest =  getPlayerFromName ( who )
detachElements ( unarrest, thePlayer ) 
end
addCommandHandler ( "unarrest", dettach )

detachElements hasn't got code for additional coordinates - You should have read the function on wiki.

detachElements ( element theElement, [ element theAttachToElement ] ) -- no coordinate arguments

Where to Enter Animation??

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...