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: 4
Joined: Sun Feb 09, 2020 9:20 pm
SFD Account: RandomPep0
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 JakSparro98 on Thu Feb 13, 2020 9:22 pm, edited 1 time in total.
Reason: modified the title to better reflect the discussion
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: 21

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: 4
Joined: Sun Feb 09, 2020 9:20 pm
SFD Account: RandomPep0
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)
0 x

User avatar
Motto73
Superfighter
Superfighter
Posts: 314
Joined: Mon May 09, 2016 7:35 am
Title: Lazy ass
SFD Account: Motto73
Started SFD: Multiplayer Test Demo
Location: Sunny City
Gender:
Age: 20

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

RandomPep0
Meatbag
Posts: 4
Joined: Sun Feb 09, 2020 9:20 pm
SFD Account: RandomPep0
Gender:

Post by RandomPep0 » Wed Feb 12, 2020 11:51 pm

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
0 x

Post Reply