Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Is it possible to change entities string with LUA?
12 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
Name, Trigger etc. I don't think that is possible to be perfectly honest.
![cs2d cmd](img/i_codehelp.png)
Func_Message
entity(x, y, 'str0') - string of the message possible to edit it?
This was actually one of my suggestions.
![>](img/i_next.png)
It would allow you to create any entity at will and change their parameters. That means you can insert a dynamic wall seamlessly.
![user](img/i_friend.png)
Something like
Func_Message
entity(x, y, 'str0') - string of the message possible to edit it?
Func_Message
entity(x, y, 'str0') - string of the message possible to edit it?
I don't think so, but you could make:
1
2
3
4
5
6
7
2
3
4
5
6
7
addhook("trigger","lol") function lol(name) 	if name=="yourtriggernamehere" then 		parse("trigger \"yourchangednamehere\"") 		return 1 	end end
![](img/smiles/tongue.gif)
Ken
1
entity(x,y,"str0") = "Something"
COMPLETELY USELESS JUST PROOF OF CONCEPT
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
_entity=entity function entity(x,y,value) 	if x=="1" and y=="1" then 		if value=="str0" then 			return "mystr" 		end 	end return _entity(x,y,value) end --entity(1,1,"str0") = mystr
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)