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.

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

Share questions and tutorials related to the map editor. Share you maps in the Superfighters Deluxe Custom Maps section.
Forum rules
By using the forum you agree to the following rules.
Post Reply
RandomPep0
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

Post by RandomPep0 » Tue Feb 11, 2020 9:09 pm

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

User avatar
JakSparro98
Superfighter
Superfighter
Posts: 530
Joined: Fri Jul 15, 2016 7:56 pm
Started SFD: PreAlpha 1.0.5
Location: Rome, Italy
Gender:
Age: 25

Post by JakSparro98 » 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"?
0 x

RandomPep0
Meatbag
Posts: 2
Joined: Sun Feb 09, 2020 9:20 pm
Title: Awful english speaker
Gender:

Post by RandomPep0 » Wed Feb 12, 2020 11:22 am

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)
Last edited by RandomPep0 on Wed Jul 13, 2022 3:05 am, edited 1 time in total.
0 x

User avatar
Motto73
Superfighter
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

Post by Motto73 » 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...
1 x
Image

Post Reply