Hassam Posted August 14, 2012 Share Posted August 14, 2012 hello, I have one question, when I want make one file for only I can move, how I can do?(I know I need have moveObject getPlayerTeam getTeamName getElementData createObject colshape Example(otherFiled to put coord. of the gate): obj - id object cx - close x cy - close y cz - close z crx - close rotation x cry - close rotation y crz - close rotation z ox - open x oy - open y oz - open z orx - open rotation x ory - open rotation y orz - open rotation z ng - name gang nt - name team Link to comment
Castillo Posted August 15, 2012 Share Posted August 15, 2012 I don't understand your question. Link to comment
Hassam Posted August 15, 2012 Author Share Posted August 15, 2012 First, I need create one file will be compiled, but I want in this file (gate), add this local to other file (coordgate), where I will put my coord.How I can make this script? Link to comment
damien111 Posted August 15, 2012 Share Posted August 15, 2012 I suggest you speak better English if you are going to speak english Link to comment
Flaker Posted August 15, 2012 Share Posted August 15, 2012 First, I need create one file will be compiled, but I want in this file (gate), add this local to other file (coordgate), where I will put my coord.How I can make this script? You can create .xml or .map file for this. Example of syntax: <gates> <gate x="1" y="2" z="3" moveX="1" moveY="2" moveZ="3"/> </gates> x, y, z - Gate's start position moveX, moveY, moveZ - Gate's move position moveX= Link to comment
Hassam Posted August 16, 2012 Author Share Posted August 16, 2012 resulted, but now, I want add one or more name gang for open the gate, how do I do? Link to comment
Hassam Posted August 16, 2012 Author Share Posted August 16, 2012 root = getRootElement () local resource = getResourceMapRootElement ( resource, "SWATgates" ) function openSWATGate1(thePlayer) if getElementType ( theplayer ) == "player" then moveObject (gateSWAT1, 2000, moveX, moveY, moveZ, rotx, roty, rotz ) end end addEventHandler( "onColShapeHit", swatcol1, openSWATGate1 ) addEventHandler ( "Open", root, openSWATGate1 ) function closeSWATGate1(thePlayer) if getElementType ( theplayer ) == "player" then moveObject (gateSWAT1, 2000, x, y, z, rotx, roty, rotz) end end addEventHandler( "onColShapeLeave", swatcol1, closeSWATGate1 ) addEventHandler ( "Close", root, closeSWATGate1) <gates> <gate Name=gateSWAT1 id= x="1283.5999755859" y="-1608" z="7.8000001907349" rotx="90" roty="0" rotz="89.994506835938" moveX="1283.5999755859" moveY="-1597" moveZ="7.8000001907349" /> </gates> Link to comment
damien111 Posted January 2, 2013 Share Posted January 2, 2013 couldnt you just add some if statements checking if the player is in a acl or team???? Link to comment
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