Call a local 'mis-file' to start up :-).
by Jan Sorensen · in Torque Game Engine · 05/18/2011 (9:58 am) · 4 replies
Hi here and please help :-).
I want to call a local mission file from a CS-function, but I have problems with 'the syntax', can anyone here give me a hint.
In a 'trigger':
missionName = "fps/data/missions/Intro.mis";
In a GUI-button:
command = "LokalMission(\"fps/data/missions/_Intro.mis\");";
A call from a 'Script-function':
?????
Jan :-).
I want to call a local mission file from a CS-function, but I have problems with 'the syntax', can anyone here give me a hint.
In a 'trigger':
missionName = "fps/data/missions/Intro.mis";
In a GUI-button:
command = "LokalMission(\"fps/data/missions/_Intro.mis\");";
A call from a 'Script-function':
?????
Jan :-).
About the author
My 'little hobby project': http://www.virtuchat.com/
#2
Yes I understand. But as I write I have try many thing in the call to 'LokalMission', but i get a syntax error every time I try to setup the function call. I think it must be a minor problem for them there can.
Jan :-).
05/19/2011 (1:06 pm)
Hi Michael :-).Yes I understand. But as I write I have try many thing in the call to 'LokalMission', but i get a syntax error every time I try to setup the function call. I think it must be a minor problem for them there can.
Jan :-).
#3
if(%guest $= %owner) {
LokalMission("fps/data/missions/_Intro.mis");
return;
}
But now without a 'Syntax error' in the console ?...
I must make it absolutely wrong?
05/19/2011 (1:21 pm)
Here's my latest experiment ... and then 'died' Torque :-O ..if(%guest $= %owner) {
LokalMission("fps/data/missions/_Intro.mis");
return;
}
But now without a 'Syntax error' in the console ?...
I must make it absolutely wrong?
#4
I found an apparent solution. The call must be moved from the client to server part and look like this, it's works:
if(%guest $= %owner) {
commandToClient(%client, 'GotoLocalServer', "fps/data/missions/_Intro.mis");
return;
}
Just that and thanks, Jan :-).
05/19/2011 (2:02 pm)
Hi again to a little talk to, (mostly to myself) :-D.I found an apparent solution. The call must be moved from the client to server part and look like this, it's works:
if(%guest $= %owner) {
commandToClient(%client, 'GotoLocalServer', "fps/data/missions/_Intro.mis");
return;
}
Just that and thanks, Jan :-).
Associate Michael Hall
Distracted...