Darkzombie

How to Stop Random Spawning

3 posts in this topic

Hey Guys and Ladies, I have looked but can't find any info on this question. I want to turn off the random spawn in Nal and make it so players can pick what location to spawn. If you can direct me to the proper forum or answer the question I would be very great full.  Thanks

Share this post


Link to post
Share on other sites

look in ExileClient_gui_selectSpawnLocation_show.sqf

remove

if (_numberOfSpawnPoints > 0) then
{
    _randNum = floor(random _numberOfSpawnPoints);
    _randData = lbData [24002,_randNum];
    _randomSpawnIndex = _listBox lbAdd "Random";
    _listBox lbSetData [_randomSpawnIndex, _randData];
};

from the bottom of the file 
I have not tested this ... but it should work 

Share this post


Link to post
Share on other sites

Posted (edited)

On 5/5/2016 at 10:03 PM, Shix said:

look in ExileClient_gui_selectSpawnLocation_show.sqf

remove

if (_numberOfSpawnPoints > 0) then
{
    _randNum = floor(random _numberOfSpawnPoints);
    _randData = lbData [24002,_randNum];
    _randomSpawnIndex = _listBox lbAdd "Random";
    _listBox lbSetData [_randomSpawnIndex, _randData];
};

from the bottom of the file 
I have not tested this ... but it should work 

Would adding this code to another map work ?

by reading this if (_numberOfSpawnPoints > 0) then

I assume that spawn point need to be removed commented so it equals 0

Am i right?

Edited by XxFri3ndlyxX

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.