Forum
Scripts
Is it possible to change entities string with LUA?
Is it possible to change entities string with LUA?
12 replies
1

Name, Trigger etc. I don't think that is possible to be perfectly honest.
trigger " and then return 1 . Func_Message
entity(x, y, 'str0') - string of the message possible to edit it?
This was actually one of my suggestions.
Dynamic EntitiesIt would allow you to create any entity at will and change their parameters. That means you can insert a dynamic wall seamlessly.
Infinite Rain has writtenSomething 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
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
1


Offline