Home   Help Search Login Register  

Author Topic: getting 1 object to follow another  (Read 580 times)

0 Members and 1 Guest are viewing this topic.

Dubieman

  • Guest
getting 1 object to follow another
« on: 17 Oct 2004, 04:21:31 »
Hey,

For my Dday mission, i want the machine guns to fire sorta at the higgens and I have a way to do it by using my invisible target addon.

However the boats are moving and the targets are set at 13 height cause of the ocean.

What can I do to make these targets move from place to place so the MGs aren't super accurate and make it seem like bullets are popping around you?

 :P
thanks

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:getting 1 object to follow another
« Reply #1 on: 17 Oct 2004, 04:33:04 »
Use a wee loop with random numbers to setpos the target around its central position.
Plenty of reviewed ArmA missions for you to play

Dubieman

  • Guest
Re:getting 1 object to follow another
« Reply #2 on: 17 Oct 2004, 04:36:35 »
Hmm, you gave me an idea.

I think I was using setpos without a getpos before, that might be it... :P

I just was wonderin if I could use a Game logic and  join the target to it and use the "teleporting" WPs that GLs use to make the target move?

thanks :)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:getting 1 object to follow another
« Reply #3 on: 17 Oct 2004, 18:23:58 »
You don't need GLs, just setPos the target.
Plenty of reviewed ArmA missions for you to play

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re:getting 1 object to follow another
« Reply #4 on: 19 Oct 2004, 01:17:23 »
I posted an example of attaching a target to an object, and randomly resetting the invisible target's position near the object.

Here's the post:

http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=19537

It should work similarly for you.

I to hate the superhuman AI drilling me every time!  
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Dubieman

  • Guest
Re:getting 1 object to follow another
« Reply #5 on: 19 Oct 2004, 01:25:09 »
Looks good, kinda what I was gonna do with the setpos thing. Thanks. ;)