Author Topic:  is there any kind of respawn script  (Read 645 times)

0 Members and 1 Guest are viewing this topic.

.ok

  • Supreme Member
  • *****
  • Posts: 2212
  • Awards Site art contributions/TPs in-game/Contest winners 4 years on site Members who have unlocked the robotic avatar Donated a giveaway prize. (Must be a prize of cash value.) 3 years on site 2 years on site Week 1 members w/25+ posts (4/13/13-4/20/13) 1 year on site
    • View Profile
    • Awards
is there any kind of respawn script
« on: August 22, 2015, 12:12:22 PM »
Is there a way to have like a sort of respawn effect of where you have to wait a certian time bfr you can respawn?




Spark

  • Sr. Member
  • ****
  • Posts: 410
  • I'm Italian and I love scripting
  • Awards Top contributors to the forum downloads. 2 years on site 1 year on site
    • View Profile
    • Awards
  • Xbox: ShoppingSpark3
  • Steam: Bananatelli
Re: is there any kind of respawn script
« Reply #1 on: August 22, 2015, 03:18:54 PM »
You Can make a loop script teleport like this:

Script 1Put this script on the event drive script When a player die
Notify [You are almost dead!] [Local]
Tintcolor [255,0,0] [player]
Script [script 1]
Script [script 3]

Script 1:
If
HasHistory [Spawn] [player] [true]
Then
Notify [Put here what you want [local]
Tintcolor  [delete] [player]
Wait [100]
History [spawn] [clear] [player]
Else
Teleport [player] [x,y,z:Put here your coordinates]
Script [Script 2]

Script 2Loop script

Wait [100]
Script [script 1]

Script 3

Wait [5000]
History [spawn] [player]

I didn't test It, But I think It should work
Hope it's usefully  :D

(Sorry for the bad English, i'm italian )
 
Amazing Scripter!

.ok

  • Supreme Member
  • *****
  • Posts: 2212
  • Awards Site art contributions/TPs in-game/Contest winners 4 years on site Members who have unlocked the robotic avatar Donated a giveaway prize. (Must be a prize of cash value.) 3 years on site 2 years on site Week 1 members w/25+ posts (4/13/13-4/20/13) 1 year on site
    • View Profile
    • Awards
Re: is there any kind of respawn script
« Reply #2 on: August 22, 2015, 06:22:50 PM »
You Can make a loop script teleport like this:

Script 1Put this script on the event drive script When a player die
Notify [You are almost dead!] [Local]
Tintcolor [255,0,0] [player]
Script [script 1]
Script [script 3]

Script 1:
If
HasHistory [Spawn] [player] [true]
Then
Notify [Put here what you want [local]
Tintcolor  [delete] [player]
Wait [100]
History [spawn] [clear] [player]
Else
Teleport [player] [x,y,z:Put here your coordinates]
Script [Script 2]

Script 2Loop script

Wait [100]
Script [script 1]

Script 3

Wait [5000]
History [spawn] [player]

I didn't test It, But I think It should work
Hope it's usefully  :D

(Sorry for the bad English, i'm italian )
ok yea i figured itd prob go under event scripting  but could you tell me or break it down what each script does more,just so i have a better idea of what does what




Spark

  • Sr. Member
  • ****
  • Posts: 410
  • I'm Italian and I love scripting
  • Awards Top contributors to the forum downloads. 2 years on site 1 year on site
    • View Profile
    • Awards
  • Xbox: ShoppingSpark3
  • Steam: Bananatelli
Re: is there any kind of respawn script
« Reply #3 on: August 22, 2015, 07:49:41 PM »
Quote
You Can make a loop script teleport like this:

Script 1Put this script on the event drive script When a player die
Notify [You are almost dead!] [Local]
Tintcolor [255,0,0] [player]
Script [script 1]
Script [script 3]

Script 1:
If
HasHistory [Spawn] [player] [true]
Then
Notify [Put here what you want [local]
Tintcolor  [delete] [player]
Wait [100]
History [spawn] [clear] [player]
Else
Teleport [player] [x,y,z:Put here your coordinates]
Script [Script 2]

Script 2Loop script

Wait [100]
Script [script 1]

Script 3

Wait [5000]
History [spawn] [player]

I didn't test It, But I think It should work
Hope it's usefully  :D

(Sorry for the bad English, i'm italian )
This script teleport always in a point so you can't Move unti 5 seconds
Amazing Scripter!

Zoidberg

  • Legendary Member
  • *****
  • Posts: 1445
  • Awards Awarded for extraordinary testing services to our game. Awarded to exemplary forum members 1 year on site
    • View Profile
    • Awards
  • Xbox: v Zoidberg v
  • Steam: v_Zoidberg_v
Re: is there any kind of respawn script
« Reply #4 on: August 22, 2015, 08:40:32 PM »
Another option could be to have the Spawn Zone in a "Respawning Room", where the players would have to wait a specific amount of time before being teleported out back to the rest of the map. The only script you would need for that is this:

Notify [Respawning in ______] [local]
Wait [milliseconds]
Teleport [player] [x,y,z]


You could put this in the 'Player Dies' Event Driven Script, but if a player were to die and leave the session before the 5 seconds is over, then the next time they joined back the script wouldn't activate, leaving them in that room. So the best way to set this up might be to have a zone around the "Respawning Room" with the above script as the 'Entry Script', so when they enter it activates the script.


.ok

  • Supreme Member
  • *****
  • Posts: 2212
  • Awards Site art contributions/TPs in-game/Contest winners 4 years on site Members who have unlocked the robotic avatar Donated a giveaway prize. (Must be a prize of cash value.) 3 years on site 2 years on site Week 1 members w/25+ posts (4/13/13-4/20/13) 1 year on site
    • View Profile
    • Awards
Re: is there any kind of respawn script
« Reply #5 on: August 22, 2015, 09:47:17 PM »
Another option could be to have the Spawn Zone in a "Respawning Room", where the players would have to wait a specific amount of time before being teleported out back to the rest of the map. The only script you would need for that is this:

Notify [Respawning in ______] [local]
Wait [milliseconds]
Teleport [player] [x,y,z]


You could put this in the 'Player Dies' Event Driven Script, but if a player were to die and leave the session before the 5 seconds is over, then the next time they joined back the script wouldn't activate, leaving them in that room. So the best way to set this up might be to have a zone around the "Respawning Room" with the above script as the 'Entry Script', so when they enter it activates the script.
is there a way to make it to where they need a history bfr they can respawn
or a way to either
1)make them ccyt or spectate people
or
2)a way to make them ccyt specific people or a set group of ppl




Fuertey

  • Elite Member
  • *****
  • Posts: 859
  • Keyboard not found. Press F1 to continue.
  • Awards Awarded to exemplary forum members 2 years on site 4 years on site 3 years on site 1 year on site
    • View Profile
    • Awards
  • Xbox: Fuertey
  • Steam: Fuertey
Re: is there any kind of respawn script
« Reply #6 on: August 22, 2015, 11:57:34 PM »
Why over complicate things?

Tintcolor [0,0,0] [player]
MessageBox [You will respawn in 5 seconds. Press B to close this message.]
Wait [5000]
Tintcolor [delete] [player]

Add it as a player dies event script.

Zoidberg

  • Legendary Member
  • *****
  • Posts: 1445
  • Awards Awarded for extraordinary testing services to our game. Awarded to exemplary forum members 1 year on site
    • View Profile
    • Awards
  • Xbox: v Zoidberg v
  • Steam: v_Zoidberg_v
Re: is there any kind of respawn script
« Reply #7 on: August 23, 2015, 01:07:18 AM »
is there a way to make it to where they need a history bfr they can respawn

Yeah. You could do a script like so:

If
HasHistory [name] [player] [true]
Then
*Respawn*
Else
Notify [You are not able to respawn yet] [local]


1)make them ccyt or spectate people

You cannot force a player to spectate another player

2)a way to make them ccyt specific people or a set group of ppl

Same answer as the last question.

The best you can do with the CCTV is make them view specific areas, or track their own position.
« Last Edit: August 23, 2015, 05:31:15 AM by Zoidberg »


Spark

  • Sr. Member
  • ****
  • Posts: 410
  • I'm Italian and I love scripting
  • Awards Top contributors to the forum downloads. 2 years on site 1 year on site
    • View Profile
    • Awards
  • Xbox: ShoppingSpark3
  • Steam: Bananatelli
Re: is there any kind of respawn script
« Reply #8 on: August 23, 2015, 05:59:35 AM »
Quote
Why over complicate things?

Tintcolor [0,0,0] [player]
MessageBox [You will respawn in 5 seconds. Press B to close this message.]
Wait [5000]
Tintcolor [delete] [player]

Add it as a player dies event script.
I always complicate my script xD
Amazing Scripter!

.ok

  • Supreme Member
  • *****
  • Posts: 2212
  • Awards Site art contributions/TPs in-game/Contest winners 4 years on site Members who have unlocked the robotic avatar Donated a giveaway prize. (Must be a prize of cash value.) 3 years on site 2 years on site Week 1 members w/25+ posts (4/13/13-4/20/13) 1 year on site
    • View Profile
    • Awards
Re: is there any kind of respawn script
« Reply #9 on: August 23, 2015, 10:51:06 AM »
Yeah. You could do a script like so:

If
HasHistory [name] [player] [true]
Then
*Respawn*
Else
Notify [You are not able to respawn yet] [local]


The best you can do with the CCTV is make them view specific areas, or track their own position.
these 2 are perfect for what i have in mind