Welcome, Guest. Please login or register.
Did you miss your activation email?
September 20, 2024, 02:40:02 AM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: LUA Help
Pages: [1]
Author Topic: LUA Help  (Read 5807 times)
Arcadium
Poster

Posts: 13


« on: December 08, 2011, 02:34:43 AM »

Hello everyone, I was wondering how to check if any traitor is in the radius of a specific entity. I have some LUA experience, but not enough to figure this out, thanks.
BipolarDiZ
Poster

Posts: 101


|:NxS:| Staff! :D


« Reply #1 on: December 08, 2011, 02:43:34 AM »

Well there are ways to make it so that a weapon doesn't affect a traitor at all but I don't know how to make it base on the players radius.

!v:IsActiveTraitor()
This will make it so it detects if it isn't a traitor. With that said just remove the ! to make it detect traitors. It would help if you told us what you were doing with it though.

BipolarDiZ is bipolar.
|:NxS:| Custom TTT Server: source.nxs-gaming.com:27015
|:NxS:| Vanilla TTT Server: source.nxs-gaming.com:27016
|:NxS:| Fretta: currently offline
Arcadium
Poster

Posts: 13


« Reply #2 on: December 08, 2011, 02:55:21 AM »

I actually plan on giving a traitor a notification if hes in the radius of a C4.
BipolarDiZ
Poster

Posts: 101


|:NxS:| Staff! :D


« Reply #3 on: December 08, 2011, 04:24:26 AM »

Well there is already the visual display where the C4 is. But yeah I am thinking IsActiveTraitor might work for what you are doing.

BipolarDiZ is bipolar.
|:NxS:| Custom TTT Server: source.nxs-gaming.com:27015
|:NxS:| Vanilla TTT Server: source.nxs-gaming.com:27016
|:NxS:| Fretta: currently offline
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: LUA Help « 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.007 seconds with 17 queries.