LUA Command |
Description
|
AddSchedule("name", time, function[, param1 ... param4]) |
Schedules function to go off with time second delay. Optional parameters are applied to the function.
|
AddScheduleRepeating("name", time, function[, param1 ... param4]) |
Adds a schedule that repeats function constantly every time seconds.
|
AddScheduleRepeatingNotInfinitely("name", time, function, counts[, param1 ... param4]) |
Adds a schedule that repeats function counts times every time seconds.
|
AddHudIcon( player, HudIconType, NameOfHudIcon, X, Y, Width, Height, Align ) |
adds HUD icon to given player of given type. Name is generally taken from the flag entity to apply the right kind. X, Y, W, H, and A are all standard.
|
AddHudIconToAll( HudIconType, NameOfHudUcon, X, Y, W, H, A ) |
adds HUD icon to all players like those used for flag info.
|
DeleteSchedule( schedulename ) |
deletes an existing schedule.
|
RemoveSchedule( schedulename ) |
same as delete.
|
GetConvar( cvar ) |
checks the value of a console variable (cvar)
|
GetEntity( index ) |
gets an entity by its index.
|
GetEntityByName( name ) |
obvious?
|
GetInfoScriptById( id ) |
gets an info_ff_script's information by its id.
|
GetInfoScriptByName( name ) |
obvious?
|
GetGrenade() |
??
|
GetPacketloss( playerentity ) |
gets a player's packet loss. Woo?
|
GetPing( playerentity ) |
|
GetPlayer( playerentity ) |
|
GetPlayerByID( id ) |
|
GetServerTime() |
|
GetSteamID( playerentity ) |
|
GetTeam( playerentity ) |
|
GetTriggerScriptByName( name ) |
|
GoToIntermission( ) |
???
|
IncludeScript( luafile ) |
used to include Lua files found in /includes/ such as base_teamplay or base_ctf.
|
ApplyToAll( effect ) |
|
ApplyToTeam( effect, team ) |
|
ApplyToPlayer( effect, player ) |
|
AreTeamsAllied( team1, team2 ) |
obvious?
|
KillAndRespawnAllPlayers() |
obvious!
|
NumPlayers() |
gets the number of players.
|
OutputEvent( event, ent_id[, param1, param2, etc.] ) |
tells an entity to fire the given output.
|
OutputEvent , void * const char* , const char* , const char* , float , unsigned int &FFLib::FireOutput |
|
PrecacheModel( modelfile ) |
loads a given model into memory for use later.
|
PrecacheSound( soundfile ) |
as above.
|
PrintBool , &FFLib::PrintBool |
|
RandomFloat( min, max ) |
generates a random float.
|
RandomInt( min, max ) |
generates a random integer
|
RemoveEntity( ent_id ) |
removes entity.
|
RemoveHudItem( player, hudiconid ) |
removes hud icon.
|
RemoveHudItemFromAll( hudiconid ) |
|
RespawnAllPlayers( ) |
respawns everyone.
|
ResetMap() |
resets map.
|
SetGlobalRespawnDelay( time ) |
enforces a respawn delay.
|
SetPlayerLimit( team , # ) |
used to set player limit per team.
|
SetPlayerLimits( #, # ) |
|
SmartClassLimits( team, #scout, #sniper, #soldier, #demoman, #medic, #hwguy, #pyro, #spy, #engineer, #civilian ) |
sets smart class limits instead of using individual commands.
|
SetConvar( player, var, value ) |
sets a players cvar to set value
|
SetTeamAllies( team , bits ) |
used to ally one team to another.
|
SetTeamClassLimit( team, class, limit ) |
|
SetTeamName( team, name ) |
|
SetTeamPlayerLimit( team, limit ) |
|
SetTeamPlayerLimit( team, limit ) |
|
SmartMessage , &FFLib::SmartMessage |
|
SmartSound , &FFLib::SmartSound |
|
SmartTeamMessage , &FFLib::SmartTeamMessage |
|
SmartTeamSound , &FFLib::SmartTeamSound |
|
SpeakAll , &FFLib::SpeakAll |
|
SpeakPlayer , &FFLib::SpeakPlayer |
|
SpeakTeam , &FFLib::SpeakTeam |
|