Page 1 of 1

How to change map part for a campaign that im working on

Posted: Tue Feb 11, 2020 9:09 pm
by RandomPep0
I need a script that moves to the next part when a certain bot dies

Re: I need a script for a campaign that im working on

Posted: Wed Feb 12, 2020 9:54 am
by JakSparro98
You need to elaborate your request a little bit more, what do you mean with "moves to the next part"?

Re: I need a script for a campaign that im working on

Posted: Wed Feb 12, 2020 11:22 am
by RandomPep0
JakSparro98 wrote:
Wed Feb 12, 2020 9:54 am
You need to elaborate your request a little bit more, what do you mean with "moves to the next part"?
I need a script that goes to the next part of the map in my campaign when a specific bot dies (sorry my english is awful)

Re: I need a script for a campaign that im working on

Posted: Wed Feb 12, 2020 1:26 pm
by Motto73
You should do this with triggers instead. You will only need a total of 3: one SetMapPartTrigger (with the next map index selected), one OnPlayerDeathTrigger and one PlayerSpawnTrigger (this one spawns the bot). Select the OnPlayerDeathTrigger and connect source player to bot spawn. Then activate triggers to the SetMapPartTrigger. In the end it should look like the following image:
Image
Keep in mind that indexing on the SetMapPartTrigger starts from 0, so 0 is the first one, 1 is second etc...

Re: I need a script for a campaign that im working on

Posted: Wed Feb 12, 2020 11:51 pm
by RandomPep0
Motto73 wrote:
Wed Feb 12, 2020 1:26 pm
You should do this with triggers instead. You will only need a total of 3: one SetMapPartTrigger (with the next map index selected), one OnPlayerDeathTrigger and one PlayerSpawnTrigger (this one spawns the bot). Select the OnPlayerDeathTrigger and connect source player to bot spawn. Then activate triggers to the SetMapPartTrigger. In the end it should look like the following image:
Image
Keep in mind that indexing on the SetMapPartTrigger starts from 0, so 0 is the first one, 1 is second etc...
thank you so much! i always thought that i was never going to use that trigger