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.

need a script to respawn

Here you can find answered ScriptAPI topics.
Forum rules
By using the forum you agree to the following rules.
Post Reply
User avatar
The_JOKER
Fighter
Fighter
Posts: 38
Joined: Mon Jul 18, 2016 2:35 am
Title: I'm Korean JOKER :)
SFD Account: JOKER_Korea
SFD Alias: JOKER
Started SFD: April 2016
Location: South Korea
Gender:
Age: 23
Contact:

need a script to respawn

Post by The_JOKER » Mon Aug 14, 2017 8:52 am

I need a script to respawn in 15 second.

* I Only need script that respawn! don't give me death counter or any other gamemodes!*

I'm trying to make objective map that end a game with script. so its not death match.

and I need to move respawn point later so make it able to spawn on player spawn point pls.
I tried to find on forum but they were all outdated
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 » Mon Aug 14, 2017 10:23 pm

The_JOKER wrote:
Mon Aug 14, 2017 8:52 am
I need a script to respawn in 15 second.

* I Only need script that respawn! don't give me death counter or any other gamemodes!*

I'm trying to make objective map that end a game with script. so its not death match.

and I need to move respawn point later so make it able to spawn on player spawn point pls.
I tried to find on forum but they were all outdated
Here's to you:
Download Template

This will respawn only players, not bots.

You can easily move the spawn point just executing a ScriptTrigger with SetSpawnPoint as method, you will get the spawn point in the same position of the trigger.
Note that if the ScriptTrigger will be dynamic the spawn point will be set In the location where it is located when the trigger is activated.
Last edited by JakSparro98 on Tue Aug 15, 2017 3:21 pm, edited 1 time in total.
0 x

User avatar
The_JOKER
Fighter
Fighter
Posts: 38
Joined: Mon Jul 18, 2016 2:35 am
Title: I'm Korean JOKER :)
SFD Account: JOKER_Korea
SFD Alias: JOKER
Started SFD: April 2016
Location: South Korea
Gender:
Age: 23
Contact:

Post by The_JOKER » Tue Aug 15, 2017 11:23 am

JakSparro98 wrote:
Mon Aug 14, 2017 10:23 pm
This will respawn only players, not bots.

You can easily move the spawn point just executing a ScriptTrigger with SetSpawnPoint as method, you will get the spawn point in the same position of the trigger.
Note that if the ScriptTrigger will be dynamic the spawn point will be set In the location where it is located when the trigger is activated.
looks good,
can u separate team1 and team2 spawn point?
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 » Tue Aug 15, 2017 3:13 pm

The_JOKER wrote:
Tue Aug 15, 2017 11:23 am
can u separate team1 and team2 spawn point?
Updated the download above with team 1 and team 2 different spaw npoint, now you have to also add an ID to the ScriptTrigger (Team1SpawnPoint or Team2SpawnPoint) to set spawn point for team 1 or team 2.
0 x

User avatar
The_JOKER
Fighter
Fighter
Posts: 38
Joined: Mon Jul 18, 2016 2:35 am
Title: I'm Korean JOKER :)
SFD Account: JOKER_Korea
SFD Alias: JOKER
Started SFD: April 2016
Location: South Korea
Gender:
Age: 23
Contact:

Post by The_JOKER » Wed Aug 16, 2017 2:35 am

JakSparro98 wrote:
Tue Aug 15, 2017 3:13 pm
The_JOKER wrote:
Tue Aug 15, 2017 11:23 am
can u separate team1 and team2 spawn point?
Updated the download above with team 1 and team 2 different spaw npoint, now you have to also add an ID to the ScriptTrigger (Team1SpawnPoint or Team2SpawnPoint) to set spawn point for team 1 or team 2.
Looks like working great! Thank you for the help!
0 x

Post Reply