Welcome, Guest. Please login or register.
Did you miss your activation email?
November 25, 2024, 09:14:05 AM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Lower ttt_traitor_button distance from lua command.
Pages: [1]
Author Topic: Lower ttt_traitor_button distance from lua command.  (Read 2935 times)
Redcow
Poster

Posts: 87


« on: April 17, 2011, 01:20:00 AM »

Trying to lower the distance of the ttt_traitor_button entity on one specific map using the lua_run entity.  Basically need a single line of code that will do this.

I realize in the ttt_traitor_button/init.lua there is a local range of 1024.  I don't exactly know how I can lower this using a lua_run entity which will be activated toward the start of the map load.

Why I'm doing this is because I want a traitor button, but I don't want it to be reachable from such a far distance.  I need the hud, instead of the physical button.
« Last Edit: April 17, 2011, 01:21:03 AM by Redcow »
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #1 on: April 17, 2011, 11:40:05 AM »

You can't. Best you could do is use a trigger to test if the player is near enough after he presses the button, and only do something if he is (and if not show a message to him).
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Lower ttt_traitor_button distance from lua command. « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.008 seconds with 17 queries.