Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Death Spawn


Kajamaz
 Share

Recommended Posts

Server-side:

```
' ********************************************
' Default starting location [Server Only]
Public Const START_MAP As Long = 1
Public Const START_X As Long = 5
Public Const START_Y As Long = 5

```
(Note that this will also change their start location!)

* * *

To just change the on death location, but not the start location, find:
```
Call PlayerWarp(index, START_MAP, START_X, START_Y)

```
and change them to whatever you want (START_MAP is map, START_X is x, START_Y is y).

* * *

But if you want to change it for a specific map, you can edit the BootMap, BootX, and BootY in Properties of the map editor (or you could do it for every map, but I highly recommend the above solutions).
Link to comment
Share on other sites

@Soul:

> Server-side:
>
> ```
> ' ********************************************
> ' Default starting location [Server Only]
> Public Const START_MAP As Long = 1
> Public Const START_X As Long = 5
> Public Const START_Y As Long = 5
>
> ```
> (Note that this will also change their start location!)
>
> * * *
>
> To just change the on death location, but not the start location, find:
> ```
> Call PlayerWarp(index, START_MAP, START_X, START_Y)
>
> ```
> and change them to whatever you want (START_MAP is map, START_X is x, START_Y is y).
>
> * * *
>
> But if you want to change it for a specific map, you can edit the BootMap, BootX, and BootY in Properties of the map editor (or you could do it for every map, but I highly recommend the above solutions).

UMM, what do i exactly modify? and how do i modify any files???
Link to comment
Share on other sites

@Jimmy93:

> Open map editor go to propertise then change the BOOTx/y/map or what it is to where you want them to pop up after dying?

Yeah, I mentioned that in my above post. But you'd have to do this for every map.

@Kajamaz:

> Thanks, but where is Call PlayerWarp(index, START_MAP, START_X, START_Y) located, thanks :)

I made this as obvious as I could. Open up server.vbp. Now press and hold Control and then press F. Then follow the tutorial link I posted above [here it is again](http://php.webuda.com/eclipse/guide/ctrlf/slideshow.html). Then type in "Call PlayerWarp(index, START_MAP, START_X, START_Y)". If you did it right it should be highlighted. Finally you can change START_MAP, START_X, and START_Y to whatever you want. For example, if I wanted to them to spawn on Map 4, X 15, and Y 26, I would remove the old one and change it to:
```
Call PlayerWarp(index, 4, 15, 26)

```
Then compile the server. Go to the top-left corner and click "File". Then click "Make server.exe". Rejoice.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...