Xeno Posted February 28, 2010 Share Posted February 28, 2010 Hi, Im in the middle of scripting a UFO that attacks SF airport and im a bit stuck, everthing works accept it doesent move, heres my script so far. root = getRootElement () players = getElementsByType ( "player" ) function UFO( player, commandname ) setElementPosition ( player, -1326, -67, 15 ) local UFO = createObject ( 17512, -1326, -67, 55, 180, 0, 0 ) outputChatBox ( "**EVERYONE GET TO SF AIRPORT, IT IS BEING ATTACKED BY UFO'S RUN!**" ) local X,Y,Z = getElementPosition ( UFOA ) local xup = -1430 local yup = 50 local zup = 55 local xup1 = 4178 local yup1 = -1632 local zup1 = 20 local xup2 = 4178 local yup2 = -1632 local zup2 = 2 setTimer ( moveObject, 2000, 1, UFOA, 10000, xup, yup, zup ) setTimer ( moveObject, 4000, 1, UFOA, 10000, xup1, yup1, zup1 ) setTimer ( moveObject, 7000, 1, UFOA, 10000, xup2, yup2, zup2 ) end addCommandHandler ( "UFO", UFO ) Link to comment
driver2 Posted February 28, 2010 Share Posted February 28, 2010 Where is UFOA defined? Link to comment
Xeno Posted February 28, 2010 Author Share Posted February 28, 2010 local X,Y,Z = getElementPosition ( UFOA ) Link to comment
Buffalo Posted February 28, 2010 Share Posted February 28, 2010 (edited) setTimer ( moveObject, 2000, 1, [color=#0040FF]UFOA[/color], 10000, xup, yup, zup ) setTimer ( moveObject, 4000, 1, [color=#0040FF]UFOA[/color], 10000, xup1, yup1, zup1 ) setTimer ( moveObject, 7000, 1, [color=#0040FF]UFOA[/color], 10000, xup2, yup2, zup2 ) shouldn't it be UFO? if not, tell us what UFOA is.. function cUFO( player, commandname ) setElementPosition ( player, -1326, -67, 15 ) local UFO = createObject ( 17512, -1326, -67, 55, 180, 0, 0 ) outputChatBox ( "**EVERYONE GET TO SF AIRPORT, IT IS BEING ATTACKED BY UFO'S!**",root,255,100,100 ) setTimer ( moveObject, 2000, 1, UFO, 10000, -1430, 50, 55 ) setTimer ( moveObject, 12000, 1, UFO, 10000, 4178, -1632, 20 ) setTimer ( moveObject, 22000, 1, UFO, 10000, 4178, -1632, 2 ) end addCommandHandler ( "UFO", cUFO ) Edited February 28, 2010 by Guest Link to comment
Xeno Posted February 28, 2010 Author Share Posted February 28, 2010 I COULD KISS YOU! THANKS THANKS THANKS MAN Link to comment
Xeno Posted February 28, 2010 Author Share Posted February 28, 2010 Is there a way i make a huge like beam? Link to comment
dzek (varez) Posted February 28, 2010 Share Posted February 28, 2010 tomdrum11, you should notice the edit button .. yea its possible, there was a canon resource (dont know exact name, search for it) you can use for that Link to comment
Xeno Posted February 28, 2010 Author Share Posted February 28, 2010 Sorry, i was gunna edit but then i got distracted , thank you anyway I cannot find it, its called tractor beam 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