English Func_Message (script).

6 replies
Goto Page
To the start Previous 1 Next To the start
05.06.12 12:57:27 pm
Up
Misho
User
Offline Off
Hello us.
I have one idea for a script in map editor.
Ok we have Func_Message.
So my idea is when you write in the ''msg rectangle''
[username] is the best!
The message is going to look like:
''The user that is reading this'' is the best!
When i'm reading this it will be like:
Misho is the best!

I hope you get my point.
And one question is it possible?
05.06.12 01:02:14 pm
Up
DC
Admin
Offline Off
There is an idea thread (thread cs2d Ideas for Counter-Strike 2D 0.1.2.1). Please use it to post your ideas instead of creating new threads.
What you want to do is already possible with simple Lua scripts so I'll not implement it for the func_message entity.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
05.06.12 01:06:52 pm
Up
Misho
User
Offline Off
I mean script.
Not idea for the new version.
05.06.12 01:25:09 pm
Up
DC
Admin
Offline Off
There are no scripts in the map editor but you can script it with Lua as already said.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
06.06.12 03:56:17 pm
Up
Misho
User
Offline Off
Ok if it's possible with Lua can some one make it?
This can be useful for many maps. (adventure)
06.06.12 05:03:32 pm
Up
Anders4000
User
Offline Off
What do you want to trigger the function? It's not gonna be that hard.
06.06.12 05:38:22 pm
Up
TimeQuesT
User
Offline Off
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
function vDisplay(text)
     pTable = player(0,"table");
     for i=1,#pTable do
          msg2(player(pTable[i],"name").." "..text);
     end
end

addhook ("trigger","vTrigger");
function vTrigger(x,y)
     if (entity(x,y,"typename")=="func_message") then
          vDisplay(entity(x,y,"str0"));
     end
end
Muh
To the start Previous 1 Next To the start