View previous topic :: View next topic |
Author |
Message |
SoulReaver
Joined: 15 May 2004 Posts: 162
|
Posted: Wed Jul 12, 2006 5:50 pm Post subject: get current map filename? how |
|
|
Hi, i want to know how to get the current filename of the map you are playing.
i looked into the actor's script and i found
GetMapName and
GetURLmap
but the syntax wasnt clear to me. a search didnt helped me.
plz tell me how.
thanks in advance
-SR _________________ Before asking, try the Unreal wiki here.
------------------------------
New UT3 Community site. |
|
Back to top |
|
|
SoulReaver
Joined: 15 May 2004 Posts: 162
|
|
Back to top |
|
|
SoulReaver
Joined: 15 May 2004 Posts: 162
|
Posted: Wed Jul 12, 2006 9:13 pm Post subject: |
|
|
arg crap i cant seem to slove it.
string s1 = getURLmap();
string s2 = "nyleve";
getURLmap returns:
"c:\unreal\maps\nyleve.unr"
while ( InStr(s1,"\\") > 0 )
s1=Right(CurrentMap,InStr(s1,"\\"));
if (s1 ~= s2)
{
broadcastmessage("it worked");
}
but it wont broadcast for some reason. does anybody see what im doing wrong
(this is an example script, my real on does other things, not broadcast etc) _________________ Before asking, try the Unreal wiki here.
------------------------------
New UT3 Community site. |
|
Back to top |
|
|
SoulReaver
Joined: 15 May 2004 Posts: 162
|
|
Back to top |
|
|
|