Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.
New to the forum? Say hello in this topic! Also make sure to read the rules.
New to the forum? Say hello in this topic! Also make sure to read the rules.
How to change map part for a campaign that im working on
Forum rules
By using the forum you agree to the following rules.
By using the forum you agree to the following rules.
-
- Meatbag
- Posts: 2
- Joined: Sun Feb 09, 2020 9:20 pm
- Title: Awful english speaker
- Gender:
How to change map part for a campaign that im working on
I need a script that moves to the next part when a certain bot dies
Last edited by RandomPep0 on Wed Jul 13, 2022 3:06 am, edited 2 times in total.
0 x
- JakSparro98
- Superfighter
- Posts: 530
- Joined: Fri Jul 15, 2016 7:56 pm
- Started SFD: PreAlpha 1.0.5
- Location: Rome, Italy
- Gender:
- Age: 25
You need to elaborate your request a little bit more, what do you mean with "moves to the next part"?
0 x
-
- Meatbag
- Posts: 2
- Joined: Sun Feb 09, 2020 9:20 pm
- Title: Awful english speaker
- Gender:
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)JakSparro98 wrote: ↑Wed Feb 12, 2020 9:54 amYou need to elaborate your request a little bit more, what do you mean with "moves to the next part"?
Last edited by RandomPep0 on Wed Jul 13, 2022 3:05 am, edited 1 time in total.
0 x
- Motto73
- Superfighter
- Posts: 316
- Joined: Mon May 09, 2016 7:35 am
- Title: Lazy ass
- SFD Account: Motto73
- Started SFD: Multiplayer Test Demo
- Location: Sunny City
- Gender:
- Age: 24
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:

Keep in mind that indexing on the SetMapPartTrigger starts from 0, so 0 is the first one, 1 is second etc...

Keep in mind that indexing on the SetMapPartTrigger starts from 0, so 0 is the first one, 1 is second etc...
1 x
