Spawn system

Tutorials and guides for Plazma Burst and community features.

Spawn system

Postby Mirth » 11 August 2016, 22:46

First system: Timed spawn.
This system, as its name says, is purely timed, which will lead to the player's weapon (or weapons/gear) to leave the battlezone as soon as the player dies. Once the player respawns, the weapons will get back to him.

What you need:
  • 2 regions.
  • 1 player.
  • 3 triggers.
  • 2 timers.
  • The amount of weapons you wish (1 or 2 recommended).


In order to do this, you shall follow these steps:
Step 1: Region follows the player.
Spoiler: Show More
This is quite simple to do, all you need is one timer, a region and a trigger.
Set a timer (let's call it Timer to player initiator) with a delay of 0, and the action Launched on start as active. Once you have done this, you must target your trigger (which will be called Player initiator).
Once you have done that, let's move to the trigger action.

Function 1: Region>Move Region A to player B
  • Parameter A: The Region which will follow the player, we will call it Region to Player A intiator
  • Parameter B: The Player targetted by this region, which will be called Player A
http://i.imgur.com/bwMCTBn.png


Step 2: Gun leaves the battlezone and returns with the player.
Spoiler: Show More
As simple as before, we will start with the player this time.
We will set our player's stats as we wish, but what matters here is the Trigger on death.

We will call our second Trigger Trigger on death to activate timer, this trigger will have two functions.
  • Function 1: Timer>Activate timer A (which will be called Respawn delay)
      Parameter A: Respawn delay
  • Function 2: Gun>Move gun A (which we will call Player A gun) to region B which we will call Gun out of battle.
      Parameter A: Player A gun
      Parameter B: Gun out of battle


Once we have this done, we move to the timer (Respawn delay). This timer will be have its Launched on start set to no.
The delay can be set on preference, but considering we are trying to follow the player's spawn, the recommended time is 4 to 7 seconds (120 frames to 210 frames). This timer will trigger our third and last item, which is the most important part of this system, called, in simple ways and as mere example: Trigger player A initiator.


Our last trigger will have 2 functions:
  • Function 1: Gun>Move Gun A to Region B
      Parameter A: Player A gun
      Parameter B: Region to player A initiator
  • Function 2: Timer>Deactivate Timer A - This is to prevent constant flow of the timer, which is something we don't need.
      Parameter A: Respawn delay


Now I want to make a few things clear:
Spoiler: Show More
This system is not perfect, so far its two major flaws are:
  • Pausing the spawn by pressing Esc
  • Playing in Low Physics
With that being said, everything else should be fine. If you have any feedback, suggestions or questions feel free to comment below.
I will also be working on other systems which may or may not be similar to this one. Hope this helps.
User avatar
Mirth
Civil Security Lite [100]
 
Posts: 118
Joined: 30 December 2015, 03:30
Location: Hieracon

Return to Tutorials

Who is online

Users browsing this forum: No registered users