why it doesn't work?
by Anonymous · in General Discussion · 06/23/2011 (2:17 pm) · 3 replies
datablock TriggerData(DefaultTrigger){
tickPeriodMS = 100;
};
function DefaultTrigger::onEnterTrigger(%this,%trigger,%obj){
disconnect();
createServer("SinglePlayer","levels/Empty Terrain.mis");
%conn = new GameConnection(ServerConnection);
RootGroup.add(ServerConnection);
%conn.setConnectArgs("Player");
%conn.setJoinPassword("None");
%conn.connectLocal();
}
it doesn't work,just crash my computer.
tickPeriodMS = 100;
};
function DefaultTrigger::onEnterTrigger(%this,%trigger,%obj){
disconnect();
createServer("SinglePlayer","levels/Empty Terrain.mis");
%conn = new GameConnection(ServerConnection);
RootGroup.add(ServerConnection);
%conn.setConnectArgs("Player");
%conn.setJoinPassword("None");
%conn.connectLocal();
}
it doesn't work,just crash my computer.
About the author
better game,better life
Associate Michael Hall
Big Kid Games
function ChangeLevelTrigger::onEnterTrigger(%this, %trigger, %obj) { %client = %obj.client; if (!%client) { // We do not want NPC's or other AIplayers walking into our trigger and // seting off the ChangeLevelTrigger. return; } // Change "YOURLEVEL.mis" to the name of your level! %levelName = "YOURLEVEL.mis"; echo("\c4Transferring client: "@ %client @" to "@ %levelName); schedule(0, 0, loadMission, "levels/"@ %levelName, false); }