admiralkendalozzel
Member
Hello friends.
I hope you have all had a nice week.
I am trying to implement a feature in my game in which when a character dies, his spawn grouping is changed to 99, and thus spawns at a different set of spawns.
This works so far, but it activates from when the characters respawns, the grouping is changed.
This means if he is killed by another player, his grouping changes to 99, if he stands in fire or falldamage ect its 99.
I am trying to figure out a way so if my character dies from being shot, it can change to 99, but drowning or falldamage ect could be something else.
My idea for this was to create a box under the water that if you touch, your grouping changes to 50, but I am unsure how to write one of these into my script.
I will attach a picture -
When my character equips the assault rifle, all those events in the right side work, apart from the respawn event in red seems to happen twice, he respawns at grouping 99 once he equips the rifle, but a few seconds after respawning once he leaves that area it spawns him again.
Equiping the gun does change the grouping, and respawns the character in the correct place, but is it possible to have this functionality on an item or hitbox that the character doesn't need to pick up and equip? can I somehow add an OnCollideEvent() ?
Thanks for all the help so far.
I hope you have all had a nice week.
I am trying to implement a feature in my game in which when a character dies, his spawn grouping is changed to 99, and thus spawns at a different set of spawns.
This works so far, but it activates from when the characters respawns, the grouping is changed.
This means if he is killed by another player, his grouping changes to 99, if he stands in fire or falldamage ect its 99.
I am trying to figure out a way so if my character dies from being shot, it can change to 99, but drowning or falldamage ect could be something else.
My idea for this was to create a box under the water that if you touch, your grouping changes to 50, but I am unsure how to write one of these into my script.
I will attach a picture -
When my character equips the assault rifle, all those events in the right side work, apart from the respawn event in red seems to happen twice, he respawns at grouping 99 once he equips the rifle, but a few seconds after respawning once he leaves that area it spawns him again.
Equiping the gun does change the grouping, and respawns the character in the correct place, but is it possible to have this functionality on an item or hitbox that the character doesn't need to pick up and equip? can I somehow add an OnCollideEvent() ?
Thanks for all the help so far.
Attachments
Last edited: