Page 1 of 1

Button to change map

PostPosted: Thu Jan 29, 09 10:04 pm
by DxPlayer
Hello all,
How can a button change map like in BHv4?
It will be good to a cooperation map pack, I making the first one, using MPBots, Trigger to display messages and modications in dx original maps.

Thx for reading,
''[DxP]Alex'' :D

PostPosted: Sun Feb 01, 09 11:26 pm
by DxPlayer
I discovered how, thx to [17]Wildcat xD .


Code: Select all
class mapchanger01 expands Switch2;

function Frob(Actor Frobber, Inventory frobWith)
{
      local DeusExPlayer Player;

Broadcastmessage(DeusExPlayer(frobber).playerreplicationinfo.playername$" completed the mission");
   foreach allactors (class'Deusexplayer',player)
        {
        DeusExplayer(frobber).consolecommand("Servertravel Any map");
        }
}

defaultproperties
{
     ItemName="Click here to complete the mission"
}


PostPosted: Mon Feb 02, 09 12:01 am
by Alex
Uh, I don't think that will work too good.
Small tip: Try it out in MultiPlayer, without you being admin. (Thus, as if you're a normal player).

I don't think it will work, but I can't be sure.

PostPosted: Mon Feb 02, 09 3:46 pm
by DxPlayer
Yeah, I was thinking it too, but the button worked :) , thx for attention :)