Jump to content

Getting a teleported Reaper to follow a group.


Recommended Posts

Posted

Greetings!

 

I'm having trouble with a function I'm trying to implement.

 

So I want a Reaper to teleport to a spawned groups position. This part all works like it's supposed to.

 

Then I want the Reaper to orbit the spawned groups position. This part also works like it's supposed to using DCS task orbit (http://wiki.hoggit.us/view/DCS_task_orbit)

 

Then, I want the Reaper to update the orbit position as the group it is orbiting moves, and this is where I run into problems. When the Reaper has gotten it's orbit task, it is like it is locked into following that one task at that one task forever, and it cannot recieve any further instructions once it has been teleported.

 

Now, is there any way around this? What I want, and what works if you don't teleport the Reaper, is to just push another task for one second after 120 seconds of orbit, and then give the Reaper the orbit task again immediately after. But this does not seem to work once the Reaper has been teleported.

 

If I teleport it again I can give it the task to orbit, but again only once.

 

Any help on this would be much appreciated, as always.

 

Cheers!

Posted

Ok, so I got it working and it wasn't really unresponsive. It didn't want to execute tasks from it's editor placed task list, but it was responsive when given scripting commands/tasks.

Posted

Any unit that gets teleported or respawned is just a brand new unit. All it would inherit is related to basic unit properties. It is a little odd overall because the triggers may still work with group/unit is dead but other stuff like assign tasking might not work.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...