Rob 1 Posted October 24, 2001 even thoug im on a rally important mission im making i can't really carry on till godfaither makes me a cutscene so i decided to have an ubduction mission. It's on desert island and i need to know how to move an object up and down left to right....on its own....is there a way? Share this post Link to post Share on other sites
Guest Posted October 24, 2001 Static objects? I don't think so... Share this post Link to post Share on other sites
Rob 1 Posted October 24, 2001 i have this light that i want to move somehow to make it look like its flying. Share this post Link to post Share on other sites
Guest Posted October 24, 2001 Wow! When it's done, send it over! I think you have to script it to move. don't know how though... Share this post Link to post Share on other sites
Rob 1 Posted October 24, 2001 its only a quick fiddle but looks pretty cool... i will send it over to show wot happens... its pretty funny but when i finish the mission im working on now i will make an ubduction mission... so far all ive got is a man in the desert and sees a light. music starts playing..kind of spooky and then all these lights start turning on round it. when they've finished i need the light to fly of away from the island.. thinking bout it im gunna make a base and ur a pratrolman and then u see it see it. just don't nick the idea!!!!!!!!!! Share this post Link to post Share on other sites
BOPMatt 0 Posted October 24, 2001 ... well I guess you may want to use a script with a loop calling the SetPos[x, y, z]-Function  ... e.g.: given the parameters speed in x-direction and speed in y-direction the script could look like this: Usage [arg1, arg2, arg3] exec "script.sqs" e.g.: [this, 1, 1] exec "script.sqs" _AUnit = _this select 0 _SpeedX = _this select 1 _SpeedY = _this select 2 #Loop _UPos = GetPos _AUnit _AUnit SetPos [((_UPos select 0) + SpeedX), ((_UPos select 1) + SpeedY), (_UPos select 2)] ~0.25 goto "Loop" ... this would result in quite a smooth movement, but as this loop would be executed 4 times per second it could consume quite some cpu-time if you got other scripts running ... and by the way: you should define a condition that stops the movement at some time or place Share this post Link to post Share on other sites
Rob 1 Posted October 24, 2001 hey man do u recon u could make me a script for that? i could send u the mission. its only a little corny thing that hass been put together in bout 15 mins but it would be cool to see wot it turns out like. Share this post Link to post Share on other sites
BOPMatt 0 Posted October 25, 2001 ... well, I think I could do so But please add detailed information about what you want the movement to be/look like so we don't have to start this over and over again. So send the mission and required information and I'll see what I can do for you ... and when BTW: I pray for an OFFICIAL command reference... (Edited by BOPMatt at 9:15 pm on Oct. 25, 2001) Share this post Link to post Share on other sites
Rob 1 Posted October 25, 2001 i can send it to u but there aint much point anymore. firstly it was only a luagh and second i wanted to know if it was easy to move objects, and it obviously aint. Share this post Link to post Share on other sites