Results 1 to 9 of 9

Thread: how do u make objects move??

  1. #1
    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?

  2. #2
    Guest
    Static objects? I don't think so...

  3. #3
    Warrant Officer
    Join Date
    Aug 24 2001
    Location
    USA
    Posts
    2,126
    Author of the Thread
    i have this light that i want to move somehow to make it look like its flying.

  4. #4
    Guest
    Wow! When it's done, send it over! I think you have to script it to move. don't know how though...

  5. #5
    Warrant Officer
    Join Date
    Aug 24 2001
    Location
    USA
    Posts
    2,126
    Author of the Thread
    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!!!!!!!!!!

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

  7. #7
    Warrant Officer
    Join Date
    Aug 24 2001
    Location
    USA
    Posts
    2,126
    Author of the Thread
    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.

  8. #8
    ... 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)

  9. #9
    Warrant Officer
    Join Date
    Aug 24 2001
    Location
    USA
    Posts
    2,126
    Author of the Thread
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •