Pozzer18

Spawn location limitation

11 posts in this topic

Hi,

could be a stupid question but is it possible to make players unable to choose a spawn location near their dead body so for instance they can only select a spawn point more than 3000km away from the place they died? any help much appriciated

 

pozzer18

Share this post


Link to post
Share on other sites
Advertisement

Bump on this!

 

any one have a solution to this, on our servers we just have people constantly fighting on spawn locations. is their away to prevent players spawning within a certain distance of their dead corpse

Share this post


Link to post
Share on other sites

hmmm, good idea, possibly difficult to implement.

I suppose the first step you could try is hooking into the ondeath script to get the death location, I would personally then include the logic for determining if a spawn location is nearby in the ondeath script. That way if the death was not near a spawn location, it doesn't need to do anything at all. To find if there are any spawn points near a player (type for spawns in exile is marker), look at https://community.bistudio.com/wiki/nearestObjects
After that, you just need to change the spawn select menu to omit whatever marker was found in the nearestObjects query.


There have been a lot of updates since I messed with arma/exile so I'm really not the guy to do this for you, but I figured I should give input seeing as no one else has really explained a possible approach for you if you want to attempt to code it yourself.

1 person likes this

Share this post


Link to post
Share on other sites

stupid question i know, but i have the code from the arma 2 version of this, is the coding on arma 3 much different to 2 or can you rewrite arma 2 code to arma 3?

Share this post


Link to post
Share on other sites

I know they implemented a map icon of where your dead body is, you still see this upon respawn, so you would think it wouldn't be all that difficult either.

 

However, would you want to block the user from spawning near their X amount of last deaths?  What would stop a user from dyeing, spawning, dyeing, and then picking their first death spawn location?

Share this post


Link to post
Share on other sites

how would you create/ move a spawn location on your server? which file would you use to make those changes?

Share this post


Link to post
Share on other sites

the way i would want this to work would be you cant spawn within X distance to your body. when the body despawns which is set by the server so 10-15mins then you can spawn nearby again. the main reason for this is to prevent spawn camping and quick returns when doing missions or tasks near to spawn points

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.