Teleport units to a special time
Moderator: Moderators
- [Skirata]Darman[M]
- Rebel Sergeant

- Posts: 190
- Joined: Mon Aug 10, 2009 8:47 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Imperial Center, Coruscant
- Contact:
Teleport units to a special time
Hey GT, has someone of you an Idea or knows what the key code for the "teleport all units of team x " of the fakeconsole is? I would like to add it to a campaign if this is possible.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Teleport units to a special time
Look at the FAQ topic for the teleporter code, then just widen it to move all players of the proper team. Of course, instead of OnEnterRegion it'd be OnObjectiveComplete or whatever you need it to be.
- [Skirata]Darman[M]
- Rebel Sergeant

- Posts: 190
- Joined: Mon Aug 10, 2009 8:47 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Imperial Center, Coruscant
- Contact:
Re: Teleport units to a special time
THANKS guy, I'll do this
EDIT
Alright but where should I put in the names of the units that should be teleported? I think that example only shows how it works for yourself.

EDIT
Alright but where should I put in the names of the units that should be teleported? I think that example only shows how it works for yourself.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Teleport units to a special time
The following code loops over all the team members of teams 1 and 2. Put your unit teleporting code after the comment saying to put it there.
Hidden/Spoiler:
- [Skirata]Darman[M]
- Rebel Sergeant

- Posts: 190
- Joined: Mon Aug 10, 2009 8:47 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Imperial Center, Coruscant
- Contact:
Re: Teleport units to a special time
Thanks, could you give me this text passage in context? I don't know if you mean I should put it after the objectives or after the camerashots at the end of the script.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Teleport units to a special time
Insert it in the objectives, for example, on an objective completion. Don't put them in the ScriptInit section (which is where the camera shots are).
