• Chat commands to activate SourceSDK entity
    40 replies, posted
[lua]include("?????.lua")[/lua]
lua_openscript
or just put it in autorun
But, I want to make a secret room in my map. ANd when I want to use it on other servers, I can't put that lua file there :3 I'm just a lil' minge. But... Can someone explain me HOW to add a .lua in a .bsp? Or not possible? [editline]28th November 2010[/editline] The script works, now I'm going to test it with the lua_run.
ok to make it autorun on ANY server running the map without the file , you need to use a program called Pakrat. ( [url]http://www.bagthorpe.org/bob/cofrdrbob/pakrat.html[/url] ) Just chose to Pak your lua file to Map/lua/autorun
Thanks alot! But..... Can Entoros modify his file so the Ent(26) part is gone? I only want to use the name :)
you could encode the number?
I mean: Now It's like: when the entity 26 exists, it will use that entity. I just want that part removed, andonly use the name. So: if name = secret_room_door then (...)
i dont think theres a way of hidding it. you can only hide certain things to a certain level , entIndex is dirrectly interfeering with source.
It works now anyways.
I was unable to pak the lua file. If possible, can someone help me with it? I can't get it working.
Sorry, you need to Log In to post a reply to this thread.