Forum: Lua
09-29-2015, 07:29 AM
|
Replies: 112
Views: 42,278
|
Forum: Lua
11-06-2013, 10:05 PM
|
Replies: 112
Views: 42,278
Can do it all through Lua:
trigger_name =...
Can do it all through Lua:
trigger_name = trigger_ff_script:new({})
function trigger_name:ontouch( touch_entity )
if IsPlayer( touch_entity ) then
local player = CastToPlayer(...
|
Forum: Lua
02-16-2013, 11:36 AM
|
Replies: 112
Views: 42,278
|
Forum: Lua
09-07-2012, 12:33 AM
|
Replies: 112
Views: 42,278
|
Forum: Lua
09-06-2012, 11:36 PM
|
Replies: 112
Views: 42,278
|
Forum: Lua
08-20-2012, 07:24 AM
|
Replies: 112
Views: 42,278
|
Forum: Lua
08-20-2012, 07:04 AM
|
Replies: 112
Views: 42,278
Here's a working version:
...
Here's a working version:
IncludeScript("base_teamplay")
-----------------------------------------------------------------------------
-- set class limits...
|
Forum: Lua
08-20-2012, 06:32 AM
|
Replies: 112
Views: 42,278
Not sure where that error is coming from, but...
Not sure where that error is coming from, but it's not the Lua (Lua errors/messages are all prefixed with [SCRIPT]). I just tested the resupply script I posted and it seems to work for me.
Could...
|
Forum: Lua
08-20-2012, 05:10 AM
|
Replies: 112
Views: 42,278
|
Forum: Lua
08-19-2012, 09:49 PM
|
Replies: 112
Views: 42,278
|
Forum: Lua
08-19-2012, 05:56 AM
|
Replies: 112
Views: 42,278
|
Forum: Lua
10-28-2010, 01:12 AM
|
Replies: 112
Views: 42,278
It might have to do with the space in the...
It might have to do with the space in the schedule name ("Re-Enable Scoring"). Never tried that, so I'm not sure if it works. Try taking it out and testing it again.
Personally, I'd stay away from...
|
Forum: Lua
10-24-2010, 09:21 PM
|
Replies: 112
Views: 42,278
What's wrong with it?
This line determines...
What's wrong with it?
This line determines how long the trigger is disabled for:
AddSchedule("Reenable Scoring", 1, reallowscoring)
I'd change it to:
AddSchedule("reenablescoring",...
|
Forum: Lua
12-31-2009, 06:48 AM
|
Replies: 112
Views: 42,278
Also, the console will report lua errors (if...
Also, the console will report lua errors (if you're on a local server). If the 4-teams-of-death show up, the console will almost always have some sort of lua error near where it loads the lua files.
|
Forum: Lua
12-31-2009, 06:46 AM
|
Replies: 112
Views: 42,278
|
Forum: Lua
12-31-2009, 06:32 AM
|
Replies: 112
Views: 42,278
|
Forum: Lua
03-03-2008, 09:19 PM
|
Replies: 112
Views: 42,278
|
Forum: Lua
03-03-2008, 08:53 PM
|
Replies: 112
Views: 42,278
|
Forum: Lua
03-03-2008, 01:53 AM
|
Replies: 112
Views: 42,278
|
Forum: Lua
03-02-2008, 10:32 PM
|
Replies: 112
Views: 42,278
Add this to startup():
AddScheduleRepeating(...
Add this to startup():
AddScheduleRepeating( "Restock", RESTOCK_ITERATION_TIME, restock )
And then here's the bulk of the code:
playerStateTable = {}
RESTOCK_ITERATION_TIME = 1
function...
|
Forum: Lua
03-02-2008, 10:10 PM
|
Replies: 112
Views: 42,278
function player_onconc(player_entity,...
function player_onconc(player_entity, effector_entity)
if IsPlayer( player_entity ) and IsPlayer( effector_entity ) then
local player = CastToPlayer( player_entity )
local playerEffector =...
|
Forum: Lua
03-02-2008, 09:16 PM
|
Replies: 112
Views: 42,278
|
Forum: Lua
03-02-2008, 08:41 PM
|
Replies: 112
Views: 42,278
|
Forum: Lua
03-01-2008, 11:45 PM
|
Replies: 112
Views: 42,278
|
Forum: Lua
02-26-2008, 12:24 AM
|
Replies: 112
Views: 42,278
|