View Full Version : how do u make objects move??
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?
Static objects? I don't think so...
i have this light that i want to move somehow to make it look like its flying.
Wow! When it's done, send it over! http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/smile.gif I think you have to script it to move. don't know how though...
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!!!!!!!!!!
Oct 24 2001, 22:26
... 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
_UPos = GetPos _AUnit
_AUnit SetPos [((_UPos select 0) + SpeedX), ((_UPos select 1) + SpeedY), (_UPos select 2)]
... 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 http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/wink.gif
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.
Oct 25 2001, 18:13
... well, I think I could do so http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/wink.gif
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 http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/wink.gif
BTW: I pray for an OFFICIAL command reference...
(Edited by BOPMatt at 9:15 pm on Oct. 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.
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.