Jump to content

Aiuto!! Script!


N[2]O

Recommended Posts

Potete Aiutarmi..? Io vorrei che la funzione maker1hit sia visibile non da un solo player, mi spiego meglio cioè che quando un player prenda il marker e il gate si abbassi l'animazione sia visibile anche a tutti gli altri player..come devo fare? :)

function Gates( )

gate1 = createObject ( 988, 3620, -2125.3000488281, 25, 0, 0, 0 )

maker1 = createMarker ( 3620, -2105.1000976563, 23.5, "corona", 2, 255, 255, 255, 0 )

addEventHandler ( "onClientMarkerHit", maker1, maker1hit )

end

addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), Gates)

--- Gates Movement

function maker1hit ( hitPlayer, matchingDimension )

if(localPlayer == hitPlayer ) then

moveObject ( gate1, 500, 3620, -2125.3000488281, 20.200000762939, 0, 0, 0 )

moveObject ( cancello1right, 986, 4306.2001953125, -2957.1999511719, 497.60000610352, 0, 0, 0 )

end

end

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