Game Script Methods (BO2): Difference between revisions

From COD Engine Research
BullyWiiPlaza (talk | contribs)
No edit summary
Line 3: Line 3:
{| class="wikitable" style="width:100%"
{| class="wikitable" style="width:100%"
|-
|-
! Name !! Prototype !! Description
! style="width:40%" | Prototype  
! style="width:60%" | Description
|-
|-
| giveweapon
| void giveweapon( string, int, int )
| void giveweapon( string, int, int )
| Gives a weapon to the specified client with an optional argument for camo and attachments.<br /> ex: self giveweapon("mp7_mp", 255, 0);<br/>A full list containing all the weapon names can be found here http://pastebin.com/wEq07Yzw
| {{ScriptUsage
|Summary=Gives a weapon to the specified client with an optional argument for camo and attachments. A full list containing all the weapon names can be found here http://pastebin.com/wEq07Yzw
|Example=<pre>player giveweapon("mp7_mp", 255, 0);</pre>
}}
|-  
|-  
| updateweaponoptions
| void updateweaponoptions( string, int )
| void updateweaponoptions( string, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setblockweaponpickup
| void setblockweaponpickup( string, int )
| void setblockweaponpickup( string, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| calcweaponoptions
| int calcweaponoptions( int, int, int, int, int )
| int calcweaponoptions( int, int, int, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| calcplayeroptions
| int calcplayeroptions( int )
| int calcplayeroptions( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setplayerrenderoptions
| void setplayerrenderoptions( int )
| void setplayerrenderoptions( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| nextplayerrenderoption
| void nextplayerrenderoption( string )
| void nextplayerrenderoption( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| bbclasschoice
| void bbclasschoice( int, string, string )
| void bbclasschoice( int, string, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| sethighlighted
| void sethighlighted()
| void sethighlighted()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| takeweapon
| void takeweapon( string )
| void takeweapon( string )
| Removes the first occurrence of the specified weapon from a client.<br/> ex: self takeweapon("mp7_mp");
| {{ScriptUsage
|Summary=Removes the first occurrence of the specified weapon from a client.
|Example=<pre>player takeweapon("mp7_mp");</pre>
}}
|-
|-
| isthrowinggrenade
| bool isthrowinggrenade()
| bool isthrowinggrenade()
| Returns true if the specified client is throwing a grenade.<br/> ex: if(self isthrowinggrenade()) { /*do magic..*/ }
| {{ScriptUsage
|Summary=Returns true if the specified client is throwing a grenade.
|Example=<pre>if (player isthrowinggrenade())</pre>
}}
|-
|-
| forcegrenadethrow
| void forcegrenadethrow()
| void forcegrenadethrow()
| Forces the specified client to throw a grenade.<br/> ex: self forcegrenadethrow();
| {{ScriptUsage
|Summary=Forces the specified client to throw a grenade.
|Example=<pre>player forcegrenadethrow();</pre>
}}
|-
|-
| isfiring
| bool isfiring()
| bool isfiring()
| Returns true if the specified client is shooting.<br/> ex: if(self isfiring()) { /*do magic..*/ }
| {{ScriptUsage
|Summary=Returns true if the specified client is shooting.
|Example=<pre>if (player isfiring())</pre>
}}
|-
|-
| ismeleeing
| bool ismeleeing()
| bool ismeleeing()
| Returns true if the specified client is meleeing.<br/> ex: if(self ismeleeing()) { /*do magic..*/ }
| {{ScriptUsage
|Summary=Returns true if the specified client is meleeing.
|Example=<pre>if (player ismeleeing())</pre>
}}
|-
|-
| isswitchingweapons
| bool isswitchingweapons()
| bool isswitchingweapons()
| Returns true if the specified client is switching weapons.<br/> ex: if (self isswitchingweapons()) { /*do magic..*/ }
| {{ScriptUsage
|Summary=Returns true if the specified client is switching weapons.
|Example=<pre>if (player isswitchingweapons())</pre>
}}
|-
|-
| isreloading
| bool isreloading()
| bool isreloading()
| Returns true if the specified client is reloading.<br/> ex: if (self isreloading()) { /*do magic..*/ }
| {{ScriptUsage
|Summary=Returns true if the specified client is reloading.
|Example=<pre>if (player isreloading())</pre>
}}
|-
|-
| takeallweapons
| void takeallweapons()
| void takeallweapons()
| Removes all weapons from the specified client including the default melee knife.<br/> ex: self takeallweapons();
| {{ScriptUsage
|Summary=Removes all weapons from the specified client including the default melee knife.
|Example=<pre>player takeallweapons();</pre>
}}
|-
|-
| isinmovemode
| bool isinmovemode()
| bool isinmovemode()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getcurrentweapon
| string getcurrentweapon()
| string getcurrentweapon()
| Returns the specified clients currently held weapon.<br/> ex: currentWeapon = self getcurrentweapon();
| {{ScriptUsage
|Summary=Returns the specified clients currently held weapon.
|Example=<pre>currentWeapon = player getcurrentweapon();</pre>
}}
|-
|-
| getcurrentweaponspinlerp
| float getcurrentweaponspinlerp()
| float getcurrentweaponspinlerp()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setcurrentweaponspinlerp
| void setcurrentweaponspinlerp( float )
| void setcurrentweaponspinlerp( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getcurrentweaponaltweapon
| string getcurrentweaponaltweapon()
| string getcurrentweaponaltweapon()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isweaponoverheating
| int isweaponoverheating( int )
| int isweaponoverheating( int )
| Returns 1 if the specified client's slot index is overheating.<br/> ex: if (self isweaponoverheating(0)) { /*do magic..*/ }
| {{ScriptUsage
|Summary=Returns 1 if the specified client's slot index is overheating.
|Example=<pre>if (player isweaponoverheating(0))</pre>
}}
|-
|-
| setweaponoverheating
| void setweaponoverheating( int, float )
| void setweaponoverheating( int, float )
| Sets the specified clients slot index overheat to a percentage.<br/> ex: self setweaponoverheating(0, 99);
| {{ScriptUsage
|Summary=Sets the specified clients slot index overheat to a percentage.
|Example=<pre>player setweaponoverheating(0, 99);</pre>
}}
|-
|-
| getcurrentoffhand
| string getcurrentoffhand()
| string getcurrentoffhand()
| Returns the current lethal/tactical or equipment.<br/> ex: offhandWeapon = self getcurrentoffhand()
| {{ScriptUsage
|Summary=Returns the current lethal/tactical or equipment.
|Example=<pre>offhandWeapon = player getcurrentoffhand();</pre>
}}
|-
|-
| isusingoffhand
| bool isusingoffhand()
| bool isusingoffhand()
| Returns true if the specified client is using their offhand weapon.<br/> ex: if (self isusingoffhand()) { /*do magic..*/ }
| {{ScriptUsage
|Summary=Returns true if the specified client is using their offhand weapon.
|Example=<pre>if (player isusingoffhand())</pre>
}}
|-
|-
| forceoffhandend
| void forceoffhandend()
| void forceoffhandend()
| Forces the specified client to use their offhand weapon.<br/> ex: self forceoffhandend()
| {{ScriptUsage
|Summary=Forces the specified client to use their offhand weapon.
|Example=<pre>player forceoffhandend()</pre>
}}
|-
|-
| hasweapon
| bool hasweapon( string )
| bool hasweapon( string )
| Returns true if the specified client has the specified weapon.<br/> ex: if (self hasweapon("mp7_mp")) { /*do magic..*/ }
| {{ScriptUsage
|Summary=Returns true if the specified client has the specified weapon.
|Example=<pre>if (player hasweapon("mp7_mp"))</pre>
}}
|-
|-
| switchtoweapon
| void switchtoweapon()
| void switchtoweapon()
|
| {{ScriptUsage
|- Forces the specified weapon to switch to the specified weapon.<br/> ex: self switchtoweapon("mp7_mp");
|Summary=Forces the specified weapon to switch to the specified weapon.
| switchtoweaponimmediate
|Example=<pre>player switchtoweapon("mp7_mp");</pre>
}}
|-
| void switchtoweaponimmediate()
| void switchtoweaponimmediate()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| switchtooffhand
| bool switchtooffhand( string )
| bool switchtooffhand( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| weaponplayejectbrass
| void weaponplayejectbrass()
| void weaponplayejectbrass()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getlockonradius
| int getlockonradius()
| int getlockonradius()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getlockonspeed
| int getlockonspeed()
| int getlockonspeed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| givestartammo
| void givestartammo( string )
| void givestartammo( string )
| Sets the specified clients' specified weapon to the starting ammunition amount.<br/> ex: self givestartammo("mp7_mp");
| {{ScriptUsage
|Summary=Sets the specified clients' specified weapon to the starting ammunition amount.
|Example=<pre>player givestartammo("mp7_mp");</pre>
}}
|-
|-
| givemaxammo
| void givemaxammo( string )
| void givemaxammo( string )
| Gives the specified clients' specified weapon maximum ammunition.<br/> ex: self givemaxammo("mp7_mp");
| {{ScriptUsage
|Summary=Gives the specified clients' specified weapon maximum ammunition.
|Example=<pre>player givemaxammo("mp7_mp");</pre>
}}
|-
|-
| getfractionstartammo
| float getfractionstartammo( string )
| float getfractionstartammo( string )
| Returns a float of the specified weapons starting ammunition.<br/> ex: mp7StartAmmo = self getfractionstartammo("mp7_mp");
| {{ScriptUsage
|Summary=Returns a float of the specified weapons starting ammunition.
|Example=<pre>fractionStartAmmo = player getfractionstartammo("mp7_mp");</pre>
}}
|-
|-
| getfractionmaxammo
| float getfractionmaxammo( string )
| float getfractionmaxammo( string )
| Returns a float of the specified weapons maximum ammunition.<br/> ex: mp7MaxAmmo = self getfractionmaxammo("mp7_mp");
| {{ScriptUsage
|Summary=Returns a float of the specified weapons maximum ammunition.
|Example=<pre>fractionMaxAmmo = player getfractionmaxammo("mp7_mp");</pre>
}}
|-
|-
| setweaponheatpercent
| void setweaponheatpercent( string, float )
| void setweaponheatpercent( string, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setorigin
| void setorigin( vector )
| void setorigin( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvelocity
| void setvelocity( vector )
| void setvelocity( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setplayerangles
| void setplayerangles( vector )
| void setplayerangles( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getplayerangles
| vector getplayerangles()
| vector getplayerangles()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getgunangles
| vector getgunangles()
| vector getgunangles()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getplayercamerapos
| vector getplayercamerapos()
| vector getplayercamerapos()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| cameraactivate
| void cameraactivate( int )
| void cameraactivate( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| camerasetposition
| void camerasetposition( vector, vector )
| void camerasetposition( vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| camerasetlookat
| void camerasetlookat( entity, vector )
| void camerasetlookat( entity, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| gamepadusedlast
| void gamepadusedlast()
| void gamepadusedlast()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| usebuttonpressed
| int usebuttonpressed()
| int usebuttonpressed()
| Returns 1 if the use button is pressed otherwise 0<br/> ex: if (self usebuttonpressed()) { /*do magic..*/ }
| {{ScriptUsage
|Summary=Returns 1 if the use button is pressed otherwise 0.
|Example=<pre>if (player usebuttonpressed())</pre>
}}
|-
|-
| changeseatbuttonpressed
| int changeseatbuttonpressed()
| int changeseatbuttonpressed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| attackbuttonpressed
| int attackbuttonpressed()
| int attackbuttonpressed()
| Returns 1 if the shooting button is pressed otherwise 0<br/> ex: if (self attackbuttonpressed()) { /*do magic..*/ }
| {{ScriptUsage
|Summary=Returns 1 if the shooting button is pressed otherwise 0.
|Example=<pre>if (player attackbuttonpressed())</pre>
}}
|-
|-
| actionslotonebuttonpressed
| int actionslotonebuttonpressed()
| int actionslotonebuttonpressed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| actionslottwobuttonpressed
| int actionslottwobuttonpressed()
| int actionslottwobuttonpressed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| actionslotthreebuttonpressed
| int actionslotthreebuttonpressed()
| int actionslotthreebuttonpressed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| actionslotfourbuttonpressed
| int actionslotfourbuttonpressed()
| int actionslotfourbuttonpressed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| adsbuttonpressed
| int adsbuttonpressed()
| int adsbuttonpressed()
| Returns 1 if the aiming down the sights button is pressed otherwise 0<br/> ex: if (self adsbuttonpressed()) { /*do magic..*/ }
| {{ScriptUsage
|Summary=Returns 1 if the aiming down the sights button is pressed otherwise 0.
|Example=<pre>if (player adsbuttonpressed())</pre>
}}
|-
|-
| throwbuttonpressed
| int throwbuttonpressed()
| int throwbuttonpressed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| meleebuttonpressed
| int meleebuttonpressed()
| int meleebuttonpressed()
| Returns 1 if the melee button is pressed otherwise 0<br/> ex: if (self meleebuttonpressed()) { /*do magic..*/ }
| {{ScriptUsage
|Summary=Returns 1 if the melee button is pressed otherwise 0.
|Example=<pre>if (player meleebuttonpressed())</pre>
}}
|-
|-
| jumpbuttonpressed
| int jumpbuttonpressed()
| int jumpbuttonpressed()
| Returns 1 if the jumping button is pressed otherwise 0<br/> ex: if (self jumpbuttonpressed()) { /*do magic..*/ }
| {{ScriptUsage
|Summary=Returns 1 if the jumping button is pressed otherwise 0
|Example=<pre>if (player jumpbuttonpressed())</pre>
}}
|-
|-
| stancebuttonpressed
| int stancebuttonpressed()
| int stancebuttonpressed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| fragbuttonpressed
| int fragbuttonpressed()
| int fragbuttonpressed()
| Returns 1 if the lethal grenade button is pressed otherwise 0<br/> ex: if (self fragbuttonpressed()) { /*do magic..*/ }
| {{ScriptUsage
|Summary=Returns 1 if the lethal grenade button is pressed otherwise 0.
|Example=<pre>if (player fragbuttonpressed())</pre>
}}
|-
|-
| secondaryoffhandbuttonpressed
| int secondaryoffhandbuttonpressed()
| int secondaryoffhandbuttonpressed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| inventorybuttonpressed
| int inventorybuttonpressed()
| int inventorybuttonpressed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| sprintbuttonpressed
| int sprintbuttonpressed()
| int sprintbuttonpressed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| sprintuprequired
| void sprintuprequired()
| void sprintuprequired()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playerads
| float playerads()
| float playerads()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| pingplayer
| void pingplayer()
| void pingplayer()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setviewmodel
| void setviewmodel( string )
| void setviewmodel( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getviewmodel
| conststring getviewmodel()
| conststring getviewmodel()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setoffhandsecondaryclass
| void setoffhandsecondaryclass( string )
| void setoffhandsecondaryclass( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getoffhandsecondaryclass
| conststring getoffhandsecondaryclass()
| conststring getoffhandsecondaryclass()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setoffhandprimaryclass
| string setoffhandprimaryclass( string )
| string setoffhandprimaryclass( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| beginlocationselection
| void beginlocationselection()
| void beginlocationselection()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| beginlocationairstrikeselection
| void beginlocationairstrikeselection()
| void beginlocationairstrikeselection()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| beginlocationmortarselection
| void beginlocationmortarselection()
| void beginlocationmortarselection()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| beginlocationartilleryselection
| void beginlocationartilleryselection()
| void beginlocationartilleryselection()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| beginlocationcomlinkselection
| void beginlocationcomlinkselection()
| void beginlocationcomlinkselection()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| beginlocationnapalmselection
| void beginlocationnapalmselection()
| void beginlocationnapalmselection()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| endlocationselection
| void endlocationselection()
| void endlocationselection()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clientsyssetstate
| void clientsyssetstate( int, string )
| void clientsyssetstate( int, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| weaponlockstart
| void weaponlockstart( entity )
| void weaponlockstart( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| weaponlockfinalize
| void weaponlockfinalize( entity )
| void weaponlockfinalize( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| weaponlockfree
| void weaponlockfree()
| void weaponlockfree()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| weaponlocktargettooclose
| void weaponlocktargettooclose( int )
| void weaponlocktargettooclose( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| weaponlocknoclearance
| void weaponlocknoclearance( int )
| void weaponlocknoclearance( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| buttonpressed
| void buttonpressed()
| void buttonpressed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| giveweaponnextattachment
| void giveweaponnextattachment()
| void giveweaponnextattachment()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| givenextbaseweapon
| void givenextbaseweapon()
| void givenextbaseweapon()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getnormalizedmovement
| void getnormalizedmovement()
| void getnormalizedmovement()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getnormalizedcameramovement
| void getnormalizedcameramovement()
| void getnormalizedcameramovement()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| sayall
| void sayall()
| void sayall()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| sayteam
| void sayteam()
| void sayteam()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setspawnweapon
| void setspawnweapon( string )
| void setspawnweapon( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| initialweaponraise
| void initialweaponraise( string )
| void initialweaponraise( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| seteverhadweaponall
| void seteverhadweaponall( int )
| void seteverhadweaponall( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| dropitem
| void dropitem( string, constlowercasestring )
| void dropitem( string, constlowercasestring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| dropscavengeritem
| void dropscavengeritem( string )
| void dropscavengeritem( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| hasagrenadepulledback
| int hasagrenadepulledback()
| int hasagrenadepulledback()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| finishplayerdamage
| bool finishplayerdamage( entity, entity, int, string, vector, vector, conststring, int, int )
| bool finishplayerdamage( entity, entity, int, string, vector, vector, conststring, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| finishmeleehit
| void finishmeleehit( entity, string, vector, vector, int, int, int )
| void finishmeleehit( entity, string, vector, vector, int, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| reviveplayer
| void reviveplayer()
| void reviveplayer()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| undolaststand
| void undolaststand()
| void undolaststand()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| suicide
| void suicide()
| void suicide()
| Kills the specified player<br/>ex: self suicide();
| {{ScriptUsage
|Summary=Kills the specified player.
|Example=<pre>player suicide();</pre>
}}
|-
|-
| turnedhuman
| void turnedhuman()
| void turnedhuman()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isinvehicle
| bool isinvehicle()
| bool isinvehicle()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isremotecontrolling
| bool isremotecontrolling()
| bool isremotecontrolling()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isweaponviewonlylinked
| bool isweaponviewonlylinked()
| bool isweaponviewonlylinked()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| allowstand
| int allowstand( int )
| int allowstand( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| allowcrouch
| int allowcrouch( int )
| int allowcrouch( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| allowprone
| int allowprone( int )
| int allowprone( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| allowlean
| int allowlean( int )
| int allowlean( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getvehicleoccupied
| entity getvehicleoccupied()
| entity getvehicleoccupied()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getfriendlies
| array getfriendlies( int )
| array getfriendlies( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getenemies
| array getenemies( int )
| array getenemies( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| openmenu
| int openmenu( string )
| int openmenu( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| openmenunomouse
| int openmenunomouse( string )
| int openmenunomouse( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| closemenu
| void closemenu()
| void closemenu()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| closeingamemenu
| void closeingamemenu()
| void closeingamemenu()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| freezecontrols
| void freezecontrols( int )
| void freezecontrols( int )
| Freezes/unfreezes the controls of the specified player<br/>ex: self freezecontrols(1);
| {{ScriptUsage
|Summary=Freezes/unfreezes the controls of the specified player
|Example=<pre>player freezecontrols(1);</pre>
}}
|-
|-
| freezecontrolsallowlook
| void freezecontrolsallowlook( int )
| void freezecontrolsallowlook( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| arecontrolsfrozen
| int arecontrolsfrozen()
| int arecontrolsfrozen()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| disableusability
| void disableusability()
| void disableusability()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| enableusability
| void enableusability()
| void enableusability()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| disableweapons
| void disableweapons()
| void disableweapons()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| enableweapons
| void enableweapons()
| void enableweapons()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| disabledeathstreak
| void disabledeathstreak()
| void disabledeathstreak()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| enabledeathstreak
| void enabledeathstreak()
| void enabledeathstreak()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| deathstreakactive
| int deathstreakactive()
| int deathstreakactive()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| disableoffhandweapons
| void disableoffhandweapons()
| void disableoffhandweapons()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| enableoffhandweapons
| void enableoffhandweapons()
| void enableoffhandweapons()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| disableweaponcycling
| void disableweaponcycling()
| void disableweaponcycling()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| enableweaponcycling
| void enableweaponcycling()
| void enableweaponcycling()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| revive
| void revive()
| void revive()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setlaststandprevweap
| void setlaststandprevweap( string )
| void setlaststandprevweap( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setreverb
| void setreverb()
| void setreverb()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| deactivatereverb
| void deactivatereverb()
| void deactivatereverb()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setchannelvolumes
| void setchannelvolumes()
| void setchannelvolumes()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| deactivatechannelvolumes
| void deactivatechannelvolumes()
| void deactivatechannelvolumes()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setweaponammoclip
| int setweaponammoclip( string, int )
| int setweaponammoclip( string, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setweaponammostock
| void setweaponammostock( string, int )
| void setweaponammostock( string, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getweaponammoclip
| int getweaponammoclip( string )
| int getweaponammoclip( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getweaponammostock
| int getweaponammostock( string )
| int getweaponammostock( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| anyammoforweaponmodes
| int anyammoforweaponmodes( string )
| int anyammoforweaponmodes( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| iprintln
| void iprintln()
| void iprintln()
| Prints text for the specified player only in the killfeed<br/>ex: self iprintln("God Mode ^2ON");
| {{ScriptUsage
|Summary=Prints text for the specified player only in the killfeed.
|Example=<pre>player iprintln("Hello, World!");</pre>
}}
|-
|-
| iprintlnbold
| void iprintlnbold()
| void iprintlnbold()
| Prints text for the specified player only in the middle of the screen or to everyone if called without player entity<br/>ex: iprintlnBold("You are all n00bs");
| {{ScriptUsage
|Summary=Prints text for the specified player only in the middle of the screen.
|Example=<pre>player iprintlnBold("Hello, World!");</pre>
}}
|-
|-
| spawn
| void spawn( vector, vector )
| void spawn( vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setentertime
| void setentertime( int )
| void setentertime( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| cloneplayer
| void cloneplayer( int )
| void cloneplayer( int )
| Creates a clone of the specified player at current position<br/>ex: self cloneplayer();
| {{ScriptUsage
|Summary=Creates a clone of the specified player at current position
|Example=<pre>player cloneplayer();</pre>
}}
|-
|-
| setclientfov
| void setclientfov()
| void setclientfov()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclientthirdperson
| void setclientthirdperson( int )
| void setclientthirdperson( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclientthirdpersonangle
| void setclientthirdpersonangle()
| void setclientthirdpersonangle()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclientcompass
| void setclientcompass()
| void setclientcompass()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclientscriptmainmenu
| void setclientscriptmainmenu()
| void setclientscriptmainmenu()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclientcgobjectivetext
| void setclientcgobjectivetext()
| void setclientcgobjectivetext()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclientplayersprinttime
| void setclientplayersprinttime()
| void setclientplayersprinttime()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclientnumlives
| void setclientnumlives()
| void setclientnumlives()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclientdrawtalk
| void setclientdrawtalk()
| void setclientdrawtalk()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclientammocounterhide
| void setclientammocounterhide()
| void setclientammocounterhide()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclientminiscoreboardhide
| void setclientminiscoreboardhide()
| void setclientminiscoreboardhide()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclienthudhardcore
| void setclienthudhardcore()
| void setclienthudhardcore()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclientplayerpushamount
| void setclientplayerpushamount()
| void setclientplayerpushamount()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclientaimlockonpitchstrength
| void setclientaimlockonpitchstrength()
| void setclientaimlockonpitchstrength()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclientuivisibilityflag
| void setclientuivisibilityflag( string, int )
| void setclientuivisibilityflag( string, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclientprofilevar
| void setclientprofilevar( string, string )
| void setclientprofilevar( string, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playclientairstrike
| void playclientairstrike( vector, int, string, string, int, string, int )
| void playclientairstrike( vector, int, string, string, int, string, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playclientnapalm
| void playclientnapalm( vector, int, string, string, int, string, int )
| void playclientnapalm( vector, int, string, string, int, string, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setcurrentspectatorclient
| void setcurrentspectatorclient( entity )
| void setcurrentspectatorclient( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| relinktoturret
| void relinktoturret( entity )
| void relinktoturret( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| carryturret
| void carryturret( entity, vector, vector )
| void carryturret( entity, vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stopcarryturret
| void stopcarryturret( entity, vector, vector )
| void stopcarryturret( entity, vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| iscarryingturret
| bool iscarryingturret()
| bool iscarryingturret()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| canplayerplaceturret
| array canplayerplaceturret( entity )
| array canplayerplaceturret( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setplacementhint
| void setplacementhint( int )
| void setplacementhint( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| linkguidedmissilecamera
| void linkguidedmissilecamera()
| void linkguidedmissilecamera()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| unlinkguidedmissilecamera
| void unlinkguidedmissilecamera()
| void unlinkguidedmissilecamera()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| gpsjammeractive
| void gpsjammeractive()
| void gpsjammeractive()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| gpsjammerinactive
| void gpsjammerinactive()
| void gpsjammerinactive()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| spawnprotectionactive
| void spawnprotectionactive()
| void spawnprotectionactive()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| spawnprotectioninactive
| void spawnprotectioninactive()
| void spawnprotectioninactive()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| dualgrenadesactive
| void dualgrenadesactive()
| void dualgrenadesactive()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| dualgrenadesinactive
| void dualgrenadesinactive()
| void dualgrenadesinactive()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| linktomissile
| void linktomissile( entity, int )
| void linktomissile( entity, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| unlinkfrommissile
| void unlinkfrommissile()
| void unlinkfrommissile()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| canplaceriotshield
| array canplaceriotshield( conststring )
| array canplaceriotshield( conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setheldweaponmodel
| void setheldweaponmodel( int )
| void setheldweaponmodel( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setriotshieldfailhint
| void setriotshieldfailhint()
| void setriotshieldfailhint()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| canplayerplacevehicle
| array canplayerplacevehicle( float, float, float, float, float, float )
| array canplayerplacevehicle( float, float, float, float, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| remotecontrolturret
| void remotecontrolturret( entity )
| void remotecontrolturret( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| remotecontrolturretoff
| void remotecontrolturretoff( entity )
| void remotecontrolturretoff( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| recordkillstreakevent
| void recordkillstreakevent( int )
| void recordkillstreakevent( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| recordkillstreakendevent
| void recordkillstreakendevent( int )
| void recordkillstreakendevent( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| recordgameevent
| void recordgameevent( string )
| void recordgameevent( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| recordkillmodifier
| void recordkillmodifier( string )
| void recordkillmodifier( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| recordmedal
| void recordmedal( string )
| void recordmedal( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| recordloadoutandperks
| void recordloadoutandperks()
| void recordloadoutandperks()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| recordloadoutperksandkillstreaks
| void recordloadoutperksandkillstreaks( string, string, string, string, int, int, int )
| void recordloadoutperksandkillstreaks( string, string, string, string, int, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| recordmultikill
| void recordmultikill( int )
| void recordmultikill( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| incrementlifestat
| void incrementlifestat()
| void incrementlifestat()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| incrementplayerstat
| void incrementplayerstat( string, int )
| void incrementplayerstat( string, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| recordplayerdeathzombies
| void recordplayerdeathzombies()
| void recordplayerdeathzombies()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| recordplayerdownzombies
| void recordplayerdownzombies( string )
| void recordplayerdownzombies( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| recordplayerrevivezombies
| void recordplayerrevivezombies( entity )
| void recordplayerrevivezombies( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| recordzombiezone
| void recordzombiezone( string, string )
| void recordzombiezone( string, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| islookingat
| int islookingat( entity )
| int islookingat( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playlocalsound
| void playlocalsound( string )
| void playlocalsound( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stoplocalsound
| void stoplocalsound( string )
| void stoplocalsound( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| istalking
| int istalking()
| int istalking()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| allowspectateteam
| void allowspectateteam( team, int )
| void allowspectateteam( team, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getguid
| int getguid()
| int getguid()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getxuid
| string getxuid()
| string getxuid()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| ishost
| int ishost()
| int ishost()
| Returns 1 if the specified player is host, 0 otherwise<br/> ex: if(self isHost()) { /*do magic..*/ }
| {{ScriptUsage
|Summary=Returns 1 if the specified player is host, 0 otherwise
|Example=<pre>if (player isHost())</pre>
}}
|-
|-
| islocaltohost
| int islocaltohost()
| int islocaltohost()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| allowads
| int allowads( int )
| int allowads( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| allowjump
| int allowjump( int )
| int allowjump( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| allowsprint
| int allowsprint( int )
| int allowsprint( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| allowmelee
| int allowmelee( int )
| int allowmelee( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| forceslick
| int forceslick( int )
| int forceslick( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setsprintduration
| void setsprintduration( float )
| void setsprintduration( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setsprintcooldown
| void setsprintcooldown( float )
| void setsprintcooldown( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setspreadoverride
| void setspreadoverride( int )
| void setspreadoverride( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| resetspreadoverride
| void resetspreadoverride()
| void resetspreadoverride()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setactionslot
| void setactionslot( int, string, string )
| void setactionslot( int, string, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getinventoryweapon
| string getinventoryweapon()
| string getinventoryweapon()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setinventoryweapon
| void setinventoryweapon( string )
| void setinventoryweapon( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getweaponslist
| array getweaponslist( int )
| array getweaponslist( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getweaponslistprimaries
| array getweaponslistprimaries()
| array getweaponslistprimaries()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| startrevive
| void startrevive()
| void startrevive()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stoprevive
| void stoprevive()
| void stoprevive()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| applyknockback
| void applyknockback( int, vector )
| void applyknockback( int, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setperk
| void setperk( string )
| void setperk( string )
| Gives the player the specified perk<br/>ex: self setperk("specialty_fastladderclimb");
| {{ScriptUsage
|Summary=Gives the player the specified perk
|Example=<pre>player setperk("specialty_fastladderclimb");</pre>
}}
|-
|-
| hasperk
| bool hasperk( string )
| bool hasperk( string )
| Returns true if the player has the specified perk, false otherwise<br/>ex: hasperk = hasperk("specialty_fastladderclimb");
| {{ScriptUsage
|Summary=Returns true if the player has the specified perk, false otherwise
|Example=<pre>if (hasperk("specialty_fastladderclimb"))</pre>
}}<br/>
|-
|-
| getperks
| array getperks()
| array getperks()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearperks
| void clearperks()
| void clearperks()
| Removes all perks from the player<br/>ex: self clearperks();
| {{ScriptUsage
|Summary=Removes all perks from the player
|Example=<pre>player clearperks();</pre>
}}
|-
|-
| unsetperk
| void unsetperk( string )
| void unsetperk( string )
| Removes a specific perk from the player<br/>ex: self unsetperk("specialty_fastladderclimb");
| {{ScriptUsage
|Summary=Removes a specific perk from the player
|Example=<pre>player unsetperk("specialty_fastladderclimb");</pre>
}}
|-
|-
| setrank
| void setrank( int, int )
| void setrank( int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| enableinvulnerability
| void enableinvulnerability()
| void enableinvulnerability()
| Enables god mode/invincibility for the specific player<br/>ex: self enableinvulnerability();
| {{ScriptUsage
|Summary=Enables god mode/invincibility for the specific player
|Example=<pre>player enableinvulnerability();</pre>
}}
|-
|-
| disableinvulnerability
| void disableinvulnerability()
| void disableinvulnerability()
| Disables god mode/invincibility for the specific player<br/>ex: self disableinvulnerability();
| {{ScriptUsage
|Summary=Disables god mode/invincibility for the specific player
|Example=<pre>player disableinvulnerability();</pre>
}}
|-
|-
| enableafterlife
| void enableafterlife()
| void enableafterlife()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| disableafterlife
| void disableafterlife()
| void disableafterlife()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| addgoal
| bool addgoal( vector, float, int, conststring, conststring )
| bool addgoal( vector, float, int, conststring, conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| cancelgoal
| void cancelgoal( conststring )
| void cancelgoal( conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| atgoal
| bool atgoal( conststring )
| bool atgoal( conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| hasgoal
| bool hasgoal( conststring )
| bool hasgoal( conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getgoal
| vector getgoal( conststring )
| vector getgoal( conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| pressusebutton
| void pressusebutton( float )
| void pressusebutton( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| pressattackbutton
| void pressattackbutton( int )
| void pressattackbutton( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| pressdtpbutton
| void pressdtpbutton()
| void pressdtpbutton()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| throwgrenade
| bool throwgrenade( string, vector )
| bool throwgrenade( string, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getlookaheaddist
| float getlookaheaddist()
| float getlookaheaddist()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getlookaheaddir
| vector getlookaheaddir()
| vector getlookaheaddir()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| lookat
| void lookat( vector )
| void lookat( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearlookat
| void clearlookat()
| void clearlookat()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| allowattack
| void allowattack( int )
| void allowattack( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| pressads
| void pressads( int )
| void pressads( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| pressmelee
| void pressmelee()
| void pressmelee()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getthreats
| array getthreats( float )
| array getthreats( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| predictposition
| vector predictposition( entity, int )
| vector predictposition( entity, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| botsighttracepassed
| bool botsighttracepassed( entity, vector )
| bool botsighttracepassed( entity, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| botsetfailsa
| void botsetfailsa( pathnode )
| void botsetfailsa( pathnode )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| botsetdefaultclass
| void botsetdefaultclass( int, string )
| void botsetdefaultclass( int, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| botclassadditem
| void botclassadditem( int, string )
| void botclassadditem( int, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| botclasssetweaponoption
| void botclasssetweaponoption( int, int, string, int )
| void botclasssetweaponoption( int, int, string, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| botclassaddattachment
| void botclassaddattachment( int, string, string, string )
| void botclassaddattachment( int, string, string, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| botleavegame
| void botleavegame()
| void botleavegame()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| issplitscreen
| int issplitscreen()
| int issplitscreen()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isplayeronsamemachine
| int isplayeronsamemachine( entity )
| int isplayeronsamemachine( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playerknockback
| void playerknockback( int )
| void playerknockback( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getplayerviewheight
| float getplayerviewheight()
| float getplayerviewheight()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| ishostforbots
| void ishostforbots()
| void ishostforbots()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| murderline
| void murderline( vector, vector, string )
| void murderline( vector, vector, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setoffhandvisible
| void setoffhandvisible( int )
| void setoffhandvisible( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| fakedamagefrom
| void fakedamagefrom( vector )
| void fakedamagefrom( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getsnapshotackindex
| int getsnapshotackindex()
| int getsnapshotackindex()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getleagueteamid
| string getleagueteamid()
| string getleagueteamid()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
|}
|}
== Script Entity Methods ==
== Script Entity Methods ==
{| class="wikitable" style="width:100%"
{| class="wikitable" style="width:100%"
|-
|-
! Name !! Prototype !! Description
! style="width:40%" | Prototype  
! style="width:60%" | Description
|-
|-
| moveto
| void moveto( vector )
| void moveto( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| movex
| void movex( float )
| void movex( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| movey
| void movey( float )
| void movey( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| movez
| void movez( float )
| void movez( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| movegravity
| void movegravity( vector, float )
| void movegravity( vector, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| moveslide
| void moveslide( vector, float, vector )
| void moveslide( vector, float, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stopmoveslide
| void stopmoveslide()
| void stopmoveslide()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| rotateto
| void rotateto( vector )
| void rotateto( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| rotatepitch
| void rotatepitch( float )
| void rotatepitch( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| rotateyaw
| void rotateyaw( float )
| void rotateyaw( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| rotateroll
| void rotateroll( float )
| void rotateroll( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| devaddpitch
| void devaddpitch( float )
| void devaddpitch( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| devaddyaw
| void devaddyaw( float )
| void devaddyaw( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| devaddroll
| void devaddroll( float )
| void devaddroll( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| vibrate
| void vibrate( vector, float, float, float )
| void vibrate( vector, float, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| rotatevelocity
| void rotatevelocity( vector )
| void rotatevelocity( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| solid
| void solid()
| void solid()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| notsolid
| void notsolid()
| void notsolid()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setcandamage
| void setcandamage( int )
| void setcandamage( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| physicslaunch
| void physicslaunch( vector, vector )
| void physicslaunch( vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setcheapflag
| void setcheapflag( int )
| void setcheapflag( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| ignorecheapentityflag
| void ignorecheapentityflag( int )
| void ignorecheapentityflag( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
|}
|}
== Script Vehicle Methods ==
== Script Vehicle Methods ==
{| class="wikitable" style="width:100%"
{| class="wikitable" style="width:100%"
|-
|-
! Name !! Prototype !! Description
! style="width:40%" | Prototype  
! style="width:60%"| Description
|-
|-
| attachpath
| void attachpath( entityref )
| void attachpath( entityref )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| vehgetmodel
| string vehgetmodel()
| string vehgetmodel()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getattachpos
| array getattachpos( entityref )
| array getattachpos( entityref )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| startpath
| void startpath()
| void startpath()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| drivepath
| entitynum drivepath( int )
| entitynum drivepath( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| pathmove
| void pathmove( vector, vector, vector )
| void pathmove( vector, vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| pathmoveclear
| void pathmoveclear()
| void pathmoveclear()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| pathfixedoffset
| void pathfixedoffset( vector )
| void pathfixedoffset( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| pathfixedoffsetclear
| void pathfixedoffsetclear()
| void pathfixedoffsetclear()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| pathvariableoffset
| void pathvariableoffset( vector, float )
| void pathvariableoffset( vector, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| pathvariableoffsetclear
| void pathvariableoffsetclear()
| void pathvariableoffsetclear()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getpathfixedoffset
| vector getpathfixedoffset()
| vector getpathfixedoffset()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getpathvariableoffset
| vector getpathvariableoffset()
| vector getpathvariableoffset()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setdrivepathphysicsscale
| void setdrivepathphysicsscale( float )
| void setdrivepathphysicsscale( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setswitchnode
| void setswitchnode( entityref, entityref )
| void setswitchnode( entityref, entityref )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setspeed
| void setspeed( float, float, float )
| void setspeed( float, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setspeedimmediate
| void setspeedimmediate( float, float, float )
| void setspeedimmediate( float, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getspeed
| float getspeed()
| float getspeed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getspeedmph
| float getspeedmph()
| float getspeedmph()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getgoalspeedmph
| float getgoalspeedmph()
| float getgoalspeedmph()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setbrake
| void setbrake( float )
| void setbrake( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getbrake
| float getbrake()
| float getbrake()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| gethandbrake
| float gethandbrake()
| float gethandbrake()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getscriptbrake
| float getscriptbrake()
| float getscriptbrake()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setacceleration
| void setacceleration( float )
| void setacceleration( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setdeceleration
| void setdeceleration( float )
| void setdeceleration( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| resumespeed
| void resumespeed( float )
| void resumespeed( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setyawspeed
| void setyawspeed( float, float, float, float )
| void setyawspeed( float, float, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setmaxpitchroll
| void setmaxpitchroll( float, float )
| void setmaxpitchroll( float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setturningability
| void setturningability( float )
| void setturningability( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setjitterparams
| void setjitterparams( vector, float, float )
| void setjitterparams( vector, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setairresistance
| void setairresistance( float )
| void setairresistance( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getsteering
| float getsteering()
| float getsteering()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getthrottle
| float getthrottle()
| float getthrottle()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setphysangles
| void setphysangles( vector )
| void setphysangles( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| sethoverparams
| void sethoverparams( float, float, float )
| void sethoverparams( float, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| joltbody
| void joltbody( vector, float, float, float )
| void joltbody( vector, float, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| freevehicle
| void freevehicle()
| void freevehicle()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getwheelsurface
| string getwheelsurface( conststring )
| string getwheelsurface( conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getvehicleowner
| entity getvehicleowner()
| entity getvehicleowner()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isvehicleusable
| int isvehicleusable()
| int isvehicleusable()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| makevehicleusable
| void makevehicleusable()
| void makevehicleusable()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| makevehicleunusable
| void makevehicleunusable()
| void makevehicleunusable()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| usevehicle
| void usevehicle( entity, int, int )
| void usevehicle( entity, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setviewclamp
| void setviewclamp( entity, float, float, float, float )
| void setviewclamp( entity, float, float, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| resetviewclamp
| void resetviewclamp( entity, entity )
| void resetviewclamp( entity, entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvehiclelookattext
| void setvehiclelookattext( conststring, constistring )
| void setvehiclelookattext( conststring, constistring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setneargoalnotifydist
| void setneargoalnotifydist( float )
| void setneargoalnotifydist( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvehgoalpos
| bool setvehgoalpos( vector, int, int, int )
| bool setvehgoalpos( vector, int, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearvehgoalpos
| void clearvehgoalpos()
| void clearvehgoalpos()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setplanegoalpos
| void setplanegoalpos( float, vector )
| void setplanegoalpos( float, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setplanebarrelroll
| void setplanebarrelroll( int, float )
| void setplanebarrelroll( int, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setgoalyaw
| void setgoalyaw( float )
| void setgoalyaw( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| cleargoalyaw
| void cleargoalyaw()
| void cleargoalyaw()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| settargetyaw
| void settargetyaw( float )
| void settargetyaw( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| cleartargetyaw
| void cleartargetyaw()
| void cleartargetyaw()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setlookatent
| void setlookatent( entity )
| void setlookatent( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearlookatent
| void clearlookatent()
| void clearlookatent()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| takeplayercontrol
| void takeplayercontrol()
| void takeplayercontrol()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| returnplayercontrol
| void returnplayercontrol()
| void returnplayercontrol()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setturrettargetvec
| void setturrettargetvec( vector )
| void setturrettargetvec( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setturrettargetent
| void setturrettargetent( entity, vector )
| void setturrettargetent( entity, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearturrettarget
| void clearturrettarget()
| void clearturrettarget()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setgunnertargetvec
| void setgunnertargetvec( vector, int )
| void setgunnertargetvec( vector, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getgunnertargetvec
| vector getgunnertargetvec( int )
| vector getgunnertargetvec( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setgunnertargetent
| void setgunnertargetent( entity, vector, int )
| void setgunnertargetent( entity, vector, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| cleargunnertarget
| void cleargunnertarget( int )
| void cleargunnertarget( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setgunnerturretontargetrange
| void setgunnerturretontargetrange( int, float )
| void setgunnerturretontargetrange( int, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getgunnertargetent
| entity getgunnertargetent( int )
| entity getgunnertargetent( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getgunneranimpitch
| float getgunneranimpitch( int )
| float getgunneranimpitch( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getgunneranimyaw
| float getgunneranimyaw( int )
| float getgunneranimyaw( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvehweapon
| void setvehweapon( string )
| void setvehweapon( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| fireweapon
| entity fireweapon( entity, vector )
| entity fireweapon( entity, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| firegunnerweapon
| entity firegunnerweapon( int, entity )
| entity firegunnerweapon( int, entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stopfireweapon
| void stopfireweapon()
| void stopfireweapon()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isturretready
| int isturretready()
| int isturretready()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvehmaxspeed
| void setvehmaxspeed( float )
| void setvehmaxspeed( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getvehoccupants
| array getvehoccupants()
| array getvehoccupants()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getseatoccupant
| entity getseatoccupant( int )
| entity getseatoccupant( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getoccupantseat
| int getoccupantseat( entity )
| int getoccupantseat( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setseatoccupied
| void setseatoccupied( int, int )
| void setseatoccupied( int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| seatgetweapon
| string seatgetweapon( int )
| string seatgetweapon( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getseatfiringorigin
| vector getseatfiringorigin( int )
| vector getseatfiringorigin( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getseatfiringangles
| vector getseatfiringangles( int )
| vector getseatfiringangles( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isgunnerfiring
| bool isgunnerfiring( int )
| bool isgunnerfiring( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| disablegunnerfiring
| void disablegunnerfiring( int, int )
| void disablegunnerfiring( int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| finishvehicledamage
| entity finishvehicledamage( entity, entity, int, string, vector, vector, conststring, int, int, int, conststring, int )
| entity finishvehicledamage( entity, entity, int, string, vector, vector, conststring, int, int, int, conststring, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| finishvehicleradiusdamage
| void finishvehicleradiusdamage( entity, entity, float, float, int, string, vector, float, float, vector, int )
| void finishvehicleradiusdamage( entity, entity, float, float, int, string, vector, float, float, vector, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isvehicleimmunetodamage
| bool isvehicleimmunetodamage( int, string, string )
| bool isvehicleimmunetodamage( int, string, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setdefaultpitch
| void setdefaultpitch( float )
| void setdefaultpitch( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| cleardefaultpitch
| void cleardefaultpitch()
| void cleardefaultpitch()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getangularvelocity
| vector getangularvelocity()
| vector getangularvelocity()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setangularvelocity
| void setangularvelocity( vector )
| void setangularvelocity( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvehvelocity
| void setvehvelocity( vector )
| void setvehvelocity( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| cancelaimove
| void cancelaimove()
| void cancelaimove()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvehicletype
| void setvehicletype( string )
| void setvehicletype( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getphysacceleration
| vector getphysacceleration()
| vector getphysacceleration()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setphysacceleration
| void setphysacceleration( vector )
| void setphysacceleration( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| drawtrajectory
| void drawtrajectory()
| void drawtrajectory()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setrotorspeed
| void setrotorspeed( float )
| void setrotorspeed( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getmaxspeed
| float getmaxspeed( int )
| float getmaxspeed( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setmantleena
| void setmantleena( int )
| void setmantleena( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvehicleavoidance
| void setvehicleavoidance( int, float, int )
| void setvehicleavoidance( int, float, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getvehicleavoidance
| int getvehicleavoidance()
| int getvehicleavoidance()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| vehcansee
| bool vehcansee( entity, int )
| bool vehcansee( entity, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| vehseenrecently
| bool vehseenrecently( entity, float )
| bool vehseenrecently( entity, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| vehclearenemy
| void vehclearenemy()
| void vehclearenemy()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| vehs
| void vehs( entity, float )
| void vehs( entity, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| vehclearentitytarget
| void vehclearentitytarget()
| void vehclearentitytarget()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getturretheatvalue
| float getturretheatvalue( int )
| float getturretheatvalue( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isvehicleturretoverheating
| bool isvehicleturretoverheating( int )
| bool isvehicleturretoverheating( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setpathtransitiontime
| void setpathtransitiontime( float )
| void setpathtransitiontime( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getvehicleavoidancenodes
| array getvehicleavoidancenodes( float )
| array getvehicleavoidancenodes( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| makesentient
| void makesentient()
| void makesentient()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
|}
|}
== Hud Element Methods ==
== Hud Element Methods ==
{| class="wikitable" style="width:100%"
{| class="wikitable" style="width:100%"
|-
|-
! Name !! Prototype !! Description
! style="width:40%" | Prototype  
! style="width:60%"| Description
|-
|-
| settext
| void settext()
| void settext()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearalltextafterhudelem
| void clearalltextafterhudelem()
| void clearalltextafterhudelem()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setshader
| void setshader( string, int, int )
| void setshader( string, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| settargetent
| void settargetent( entity, entity )
| void settargetent( entity, entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| cleartargetent
| void cleartargetent()
| void cleartargetent()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| settimer
| void settimer( float )
| void settimer( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| settimerup
| void settimerup( float )
| void settimerup( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| settenthstimer
| void settenthstimer( float )
| void settenthstimer( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| settenthstimerup
| void settenthstimerup( float )
| void settenthstimerup( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclock
| void setclock()
| void setclock()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclockup
| void setclockup()
| void setclockup()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvalue
| void setvalue( float )
| void setvalue( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setwaypoint
| void setwaypoint( int, string, int, int )
| void setwaypoint( int, string, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| fadeovertime
| void fadeovertime( float )
| void fadeovertime( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| scaleovertime
| void scaleovertime( float, int, int )
| void scaleovertime( float, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| moveovertime
| void moveovertime( float )
| void moveovertime( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| reset
| void reset()
| void reset()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| destroy
| void destroy()
| void destroy()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setpulsefx
| void setpulsefx( int, int, int )
| void setpulsefx( int, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setcod7decodefx
| void setcod7decodefx( int, int, int )
| void setcod7decodefx( int, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setredactfx
| void setredactfx( int, int, int, int )
| void setredactfx( int, int, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| settypewriterfx
| void settypewriterfx( int, int, int )
| void settypewriterfx( int, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| gettextwidth
| int gettextwidth()
| int gettextwidth()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setperks
| void setperks( entity, entity )
| void setperks( entity, entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setplayernamestring
| void setplayernamestring( entity, entity )
| void setplayernamestring( entity, entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setmapnamestring
| void setmapnamestring( string )
| void setmapnamestring( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setgametypestring
| void setgametypestring( string )
| void setgametypestring( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setwargamedata
| void setwargamedata()
| void setwargamedata()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| changefontscaleovertime
| void changefontscaleovertime( float )
| void changefontscaleovertime( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
|}
|}
== Helicopter Methods ==
== Helicopter Methods ==
{| class="wikitable" style="width:100%"
{| class="wikitable" style="width:100%"
|-
|-
! Name !! Prototype !! Description
! style="width:40%" | Prototype  
! style="width:60%"| Description
|-
|-
| freehelicopter
| void freehelicopter()
| void freehelicopter()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setspeed
| void setspeed()
| void setspeed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getspeed
| float getspeed()
| float getspeed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getspeedmph
| float getspeedmph()
| float getspeedmph()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| resumespeed
| void resumespeed( float )
| void resumespeed( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setyawspeed
| void setyawspeed( float, float, float, float )
| void setyawspeed( float, float, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setmaxpitchroll
| void setmaxpitchroll( float, float )
| void setmaxpitchroll( float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setturningability
| void setturningability( float )
| void setturningability( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setairresistance
| void setairresistance( float )
| void setairresistance( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| sethoverparams
| void sethoverparams( float, float, float )
| void sethoverparams( float, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setneargoalnotifydist
| void setneargoalnotifydist( float )
| void setneargoalnotifydist( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvehgoalpos
| bool setvehgoalpos( vector, int, int, int )
| bool setvehgoalpos( vector, int, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setgoalyaw
| void setgoalyaw( float )
| void setgoalyaw( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| cleargoalyaw
| void cleargoalyaw()
| void cleargoalyaw()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| settargetyaw
| void settargetyaw( float )
| void settargetyaw( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| cleartargetyaw
| void cleartargetyaw()
| void cleartargetyaw()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setlookatent
| void setlookatent( entity )
| void setlookatent( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearlookatent
| void clearlookatent()
| void clearlookatent()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvehweapon
| void setvehweapon( string )
| void setvehweapon( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| fireweapon
| entity fireweapon( entity, vector )
| entity fireweapon( entity, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stopfireweapon
| void stopfireweapon()
| void stopfireweapon()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setturrettargetvec
| void setturrettargetvec( vector )
| void setturrettargetvec( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setturrettargetent
| void setturrettargetent( entity, vector )
| void setturrettargetent( entity, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearturrettarget
| void clearturrettarget()
| void clearturrettarget()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setdamagestage
| void setdamagestage( int )
| void setdamagestage( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setheliheightlock
| void setheliheightlock( int )
| void setheliheightlock( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getheliheightlockheight
| float getheliheightlockheight( vector )
| float getheliheightlockheight( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isinsideheliheightlock
| int isinsideheliheightlock()
| int isinsideheliheightlock()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setheightlockoffset
| void setheightlockoffset()
| void setheightlockoffset()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
|}
|}
== Actor Methods ==
== Actor Methods ==
{| class="wikitable" style="width:100%"
{| class="wikitable" style="width:100%"
|-
|-
! Name !! Prototype !! Description
! style="width:40%" | Prototype  
! style="width:60%"| Description
|-
|-
| startcoverarrival
| void startcoverarrival()
| void startcoverarrival()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| starttraversearrival
| void starttraversearrival()
| void starttraversearrival()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| melee
| entity melee( vector )
| entity melee( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| reacquirestep
| bool reacquirestep( float )
| bool reacquirestep( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| findreacquirenode
| void findreacquirenode()
| void findreacquirenode()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getreacquirenode
| pathnode getreacquirenode()
| pathnode getreacquirenode()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| usereacquirenode
| bool usereacquirenode( pathnode )
| bool usereacquirenode( pathnode )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| findreacquiredirectpath
| void findreacquiredirectpath( int )
| void findreacquiredirectpath( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| trimpathtoattack
| bool trimpathtoattack()
| bool trimpathtoattack()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| reacquiremove
| bool reacquiremove()
| bool reacquiremove()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| findreacquireproximatepath
| void findreacquireproximatepath( int )
| void findreacquireproximatepath( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| flagenemyunattackable
| void flagenemyunattackable()
| void flagenemyunattackable()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearpitchorient
| void clearpitchorient()
| void clearpitchorient()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setpitchorient
| void setpitchorient()
| void setpitchorient()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setlookatanimnodes
| void setlookatanimnodes( anim, anim, anim )
| void setlookatanimnodes( anim, anim, anim )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setlookat
| void setlookat( vector, float )
| void setlookat( vector, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setlookatyawlimits
| void setlookatyawlimits( float, float, float )
| void setlookatyawlimits( float, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stoplookat
| void stoplookat( float )
| void stoplookat( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| cansee
| bool cansee( entity, int )
| bool cansee( entity, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| seerecently
| bool seerecently( entity, float )
| bool seerecently( entity, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| lastknowntime
| int lastknowntime( entity )
| int lastknowntime( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| lastknownpos
| vector lastknownpos( entity )
| vector lastknownpos( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| maymovetopoint
| int maymovetopoint( vector, int )
| int maymovetopoint( vector, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| maymovefrompointtopoint
| int maymovefrompointtopoint( vector, vector, int )
| int maymovefrompointtopoint( vector, vector, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| teleport
| int teleport( vector, vector )
| int teleport( vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| withinapproxpathdist
| float withinapproxpathdist( float )
| float withinapproxpathdist( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| ispathdirect
| int ispathdirect()
| int ispathdirect()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| allowedstances
| void allowedstances( conststring, conststring, conststring )
| void allowedstances( conststring, conststring, conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isstanceallowed
| int isstanceallowed( conststring )
| int isstanceallowed( conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| traversemode
| void traversemode( conststring )
| void traversemode( conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| animmode
| void animmode( conststring, int )
| void animmode( conststring, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| orientmode
| void orientmode( conststring, vector, int )
| void orientmode( conststring, vector, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getorientmode
| conststring getorientmode( string )
| conststring getorientmode( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getmotionangle
| float getmotionangle()
| float getmotionangle()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| shouldfacemotion
| bool shouldfacemotion()
| bool shouldfacemotion()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearmovehistory
| void clearmovehistory()
| void clearmovehistory()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getmovehistoryaverage
| vector getmovehistoryaverage()
| vector getmovehistoryaverage()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getanglestolikelyenemypath
| vector getanglestolikelyenemypath()
| vector getanglestolikelyenemypath()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| lerpposition
| void lerpposition( vector, vector )
| void lerpposition( vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| predictoriginandangles
| void predictoriginandangles()
| void predictoriginandangles()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| predictanim
| void predictanim()
| void predictanim()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| gethitenttype
| void gethitenttype()
| void gethitenttype()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| gethityaw
| float gethityaw()
| float gethityaw()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getgroundenttype
| void getgroundenttype()
| void getgroundenttype()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isdeflected
| int isdeflected()
| int isdeflected()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| animcustom
| void animcustom( func, func )
| void animcustom( func, func )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| canattackenemynode
| int canattackenemynode()
| int canattackenemynode()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getpathlength
| int getpathlength()
| int getpathlength()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| calcpathlength
| int calcpathlength( vector )
| int calcpathlength( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getnegotiationstartnode
| pathnode getnegotiationstartnode()
| pathnode getnegotiationstartnode()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getnegotiationendnode
| pathnode getnegotiationendnode()
| pathnode getnegotiationendnode()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| canseepathgoal
| int canseepathgoal()
| int canseepathgoal()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| checkprone
| bool checkprone( vector, float, int )
| bool checkprone( vector, float, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| pushplayer
| void pushplayer( int )
| void pushplayer( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setgoalnode
| void setgoalnode( pathnode )
| void setgoalnode( pathnode )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setgoalpos
| void setgoalpos( vector, vector )
| void setgoalpos( vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setgoalentity
| void setgoalentity( entity )
| void setgoalentity( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setgoalvolume
| void setgoalvolume( entity )
| void setgoalvolume( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setgoalvolumeauto
| void setgoalvolumeauto( entity )
| void setgoalvolumeauto( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getgoalvolume
| entity getgoalvolume()
| entity getgoalvolume()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| cleargoalvolume
| void cleargoalvolume()
| void cleargoalvolume()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setfixednodesafevolume
| void setfixednodesafevolume( entity )
| void setfixednodesafevolume( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getfixednodesafevolume
| entity getfixednodesafevolume()
| entity getfixednodesafevolume()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearfixednodesafevolume
| void clearfixednodesafevolume()
| void clearfixednodesafevolume()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isingoal
| bool isingoal( vector )
| bool isingoal( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setruntopos
| void setruntopos( vector )
| void setruntopos( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearruntopos
| void clearruntopos()
| void clearruntopos()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| nearnode
| bool nearnode( pathnode )
| bool nearnode( pathnode )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| nearclaimnode
| bool nearclaimnode()
| bool nearclaimnode()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| nearclaimnodeandangle
| bool nearclaimnodeandangle()
| bool nearclaimnodeandangle()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| atdangerousnode
| bool atdangerousnode()
| bool atdangerousnode()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getenemyinfo
| void getenemyinfo( entity )
| void getenemyinfo( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearenemy
| void clearenemy()
| void clearenemy()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setentitytarget
| void setentitytarget( entity, float )
| void setentitytarget( entity, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearentitytarget
| void clearentitytarget()
| void clearentitytarget()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setpotentialthreat
| void setpotentialthreat( float )
| void setpotentialthreat( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearpotentialthreat
| void clearpotentialthreat()
| void clearpotentialthreat()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getperfectinfo
| void getperfectinfo( entity )
| void getperfectinfo( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setflashbangimmunity
| void setflashbangimmunity( int )
| void setflashbangimmunity( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setflashbanged
| void setflashbanged( int )
| void setflashbanged( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getflashbangedstrength
| float getflashbangedstrength()
| float getflashbangedstrength()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isknownenemyinradius
| int isknownenemyinradius( vector, float )
| int isknownenemyinradius( vector, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isknownenemyinvolume
| int isknownenemyinvolume( entity )
| int isknownenemyinvolume( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| settalktospecies
| void settalktospecies( conststring )
| void settalktospecies( conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| allowpitchangle
| void allowpitchangle( int )
| void allowpitchangle( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| knockback
| void knockback( int )
| void knockback( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getdeltaturnyaw
| float getdeltaturnyaw()
| float getdeltaturnyaw()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| finishactordamage
| entity finishactordamage( entity, entity, int, string, vector, vector, conststring, int, int )
| entity finishactordamage( entity, entity, int, string, vector, vector, conststring, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| calclookaheadpos
| array calclookaheadpos( vector, int )
| array calclookaheadpos( vector, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setengagementmindist
| void setengagementmindist()
| void setengagementmindist()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setengagementmaxdist
| void setengagementmaxdist()
| void setengagementmaxdist()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isinscriptedstate
| bool isinscriptedstate()
| bool isinscriptedstate()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| meleewithoffset
| entity meleewithoffset( vector )
| entity meleewithoffset( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| forceteleport
| int forceteleport( vector, vector )
| int forceteleport( vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setentityowner
| void setentityowner( entity )
| void setentityowner( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearentityowner
| void clearentityowner()
| void clearentityowner()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setanimstate
| void setanimstate( conststring, int )
| void setanimstate( conststring, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setaimanimweights
| void setaimanimweights( float, float )
| void setaimanimweights( float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| startscriptedanim
| void startscriptedanim()
| void startscriptedanim()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| popaistate
| void popaistate()
| void popaistate()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setanimstatefromasd
| int setanimstatefromasd( conststring, conststring, int )
| int setanimstatefromasd( conststring, conststring, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| hasanimstatefromasd
| bool hasanimstatefromasd( conststring )
| bool hasanimstatefromasd( conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getanimstatefromasd
| conststring getanimstatefromasd()
| conststring getanimstatefromasd()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getanimsubstatefromasd
| int getanimsubstatefromasd( conststring, conststring )
| int getanimsubstatefromasd( conststring, conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getanimsubstatecountfromasd
| int getanimsubstatecountfromasd( conststring )
| int getanimsubstatecountfromasd( conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getanimfromasd
| anim getanimfromasd( conststring, animsindex, animsindex, int )
| anim getanimfromasd( conststring, animsindex, animsindex, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getanimlengthfromasd
| float getanimlengthfromasd( conststring, int )
| float getanimlengthfromasd( conststring, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getanimhasnotetrackfromasd
| bool getanimhasnotetrackfromasd( conststring, int, conststring )
| bool getanimhasnotetrackfromasd( conststring, int, conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setfreecameralockonallowed
| void setfreecameralockonallowed( int )
| void setfreecameralockonallowed( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
|}
|}
== Builtin Common Methods ==
== Builtin Common Methods ==
{| class="wikitable" style="width:100%"
{| class="wikitable" style="width:100%"
|-
|-
! Name !! Prototype !! Description
! style="width:40%" | Prototype  
! style="width:60%"| Description
|-
|-
| forceyellowdot
| void forceyellowdot( int )
| void forceyellowdot( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| disableyellowdot
| void disableyellowdot( int )
| void disableyellowdot( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| allowcamerarotation
| void allowcamerarotation( int )
| void allowcamerarotation( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| reloadonnunchuk
| bool reloadonnunchuk()
| bool reloadonnunchuk()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| reloadonwiiumote
| bool reloadonwiiumote()
| bool reloadonwiiumote()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| attach
| void attach( string, constlowercasestring, int )
| void attach( string, constlowercasestring, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| detach
| void detach( string, constlowercasestring )
| void detach( string, constlowercasestring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| detachall
| void detachall()
| void detachall()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getattachsize
| int getattachsize()
| int getattachsize()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getattachmodelname
| conststring getattachmodelname( int )
| conststring getattachmodelname( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getattachtagname
| conststring getattachtagname( int )
| conststring getattachtagname( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getattachignorecollision
| bool getattachignorecollision( int )
| bool getattachignorecollision( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| hidepart
| void hidepart( constlowercasestring, string )
| void hidepart( constlowercasestring, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| runscriptonent
| void runscriptonent()
| void runscriptonent()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| sendaiscriptvals
| void sendaiscriptvals( string, string )
| void sendaiscriptvals( string, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| showpart
| void showpart( constlowercasestring, string )
| void showpart( constlowercasestring, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| showallparts
| void showallparts()
| void showallparts()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playsoundtoplayer
| void playsoundtoplayer( string )
| void playsoundtoplayer( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getlightcolor
| vector getlightcolor()
| vector getlightcolor()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setlightcolor
| void setlightcolor( vector )
| void setlightcolor( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getlightintensity
| float getlightintensity()
| float getlightintensity()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setlightintensity
| void setlightintensity( float )
| void setlightintensity( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getlightradius
| float getlightradius()
| float getlightradius()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setlightradius
| void setlightradius( float )
| void setlightradius( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getlightfovinner
| float getlightfovinner()
| float getlightfovinner()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getlightfovouter
| float getlightfovouter()
| float getlightfovouter()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setlightfovrange
| void setlightfovrange( float, float )
| void setlightfovrange( float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getlightexponent
| int getlightexponent()
| int getlightexponent()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setlightexponent
| void setlightexponent( int )
| void setlightexponent( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| areallmissionsatscore
| bool areallmissionsatscore( int )
| bool areallmissionsatscore( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isstartingclassdefault
| void isstartingclassdefault()
| void isstartingclassdefault()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isstartingclasseraappropriate
| void isstartingclasseraappropriate()
| void isstartingclasseraappropriate()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getnumchallengescomplete
| int getnumchallengescomplete( string )
| int getnumchallengescomplete( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| hascompletedallgamechallenges
| bool hascompletedallgamechallenges()
| bool hascompletedallgamechallenges()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| hasallintel
| void hasallintel()
| void hasallintel()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getdstat
| string getdstat()
| string getdstat()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getdstatarraycount
| int getdstatarraycount()
| int getdstatarraycount()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setdstat
| void setdstat( string, string, int, int, float, float )
| void setdstat( string, string, int, int, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| adddstat
| void adddstat()
| void adddstat()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| addweaponstat
| void addweaponstat( string, int, int )
| void addweaponstat( string, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| addbonuscardstat
| void addbonuscardstat( int, string, int )
| void addbonuscardstat( int, string, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getsessstat
| void getsessstat()
| void getsessstat()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getsessstatarraycount
| void getsessstatarraycount()
| void getsessstatarraycount()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setsessstat
| void setsessstat()
| void setsessstat()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| addsessstat
| void addsessstat()
| void addsessstat()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| addplayerstat
| void addplayerstat( string )
| void addplayerstat( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| addplayerstatwithgametype
| void addplayerstatwithgametype()
| void addplayerstatwithgametype()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| addgametypestat
| void addgametypestat()
| void addgametypestat()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| trackweaponfirenative
| void trackweaponfirenative( string, int, int, int )
| void trackweaponfirenative( string, int, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| updatestatratio
| void updatestatratio( string, string, string )
| void updatestatratio( string, string, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| addrankxp
| int addrankxp( string, int )
| int addrankxp( string, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| addrankxpvalue
| void addrankxpvalue( string )
| void addrankxpvalue( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| hasseasonpass
| bool hasseasonpass()
| bool hasseasonpass()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setempjammed
| void setempjammed( int )
| void setempjammed( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isempjammed
| bool isempjammed()
| bool isempjammed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setspawnerteam
| void setspawnerteam( team )
| void setspawnerteam( team )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| luinotifyevent
| void luinotifyevent()
| void luinotifyevent()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| launch
| void launch( vector, vector )
| void launch( vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setmovingplatformenabled
| void setmovingplatformenabled( int )
| void setmovingplatformenabled( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| ismovingplatform
| bool ismovingplatform()
| bool ismovingplatform()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setviewmodelrenderflag
| void setviewmodelrenderflag( int )
| void setviewmodelrenderflag( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setdrawinfrared
| void setdrawinfrared( int )
| void setdrawinfrared( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setgpr
| void setgpr()
| void setgpr()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| gamehistorystartmatch
| void gamehistorystartmatch( int )
| void gamehistorystartmatch( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| gamehistoryfinishmatch
| void gamehistoryfinishmatch( int, int, int, int, int, float )
| void gamehistoryfinishmatch( int, int, int, int, int, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| unlink
| void unlink()
| void unlink()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| linkto
| void linkto()
| void linkto()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| linktoblendtotag
| void linktoblendtotag()
| void linktoblendtotag()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| enablelinkto
| void enablelinkto()
| void enablelinkto()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| linktoupdateoffset
| void linktoupdateoffset( vector, vector )
| void linktoupdateoffset( vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playerlinkto
| void playerlinkto()
| void playerlinkto()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playerlinktoblend
| void playerlinktoblend( entity, constlowercasestring, float, float, float, float, float, float )
| void playerlinktoblend( entity, constlowercasestring, float, float, float, float, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playerlinktodelta
| void playerlinktodelta()
| void playerlinktodelta()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playerlinkweaponviewtodelta
| void playerlinkweaponviewtodelta()
| void playerlinkweaponviewtodelta()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playerlinktoabsolute
| void playerlinktoabsolute( entity, constlowercasestring )
| void playerlinktoabsolute( entity, constlowercasestring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playercamlinkto
| void playercamlinkto( entity, string )
| void playercamlinkto( entity, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playercamunlink
| void playercamunlink()
| void playercamunlink()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| lerpviewangleclamp
| void lerpviewangleclamp( float, float, float, float, float, float, float )
| void lerpviewangleclamp( float, float, float, float, float, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setviewangleresistance
| void setviewangleresistance()
| void setviewangleresistance()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playerlinkedoffsetenable
| void playerlinkedoffsetenable()
| void playerlinkedoffsetenable()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playerlinkedoffsetdisable
| void playerlinkedoffsetdisable()
| void playerlinkedoffsetdisable()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playerlinkedsetusebaseangleforviewclamp
| void playerlinkedsetusebaseangleforviewclamp( int )
| void playerlinkedsetusebaseangleforviewclamp( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| dontinterpolate
| void dontinterpolate()
| void dontinterpolate()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| magicgrenadetype
| entity magicgrenadetype( string, vector, vector, float )
| entity magicgrenadetype( string, vector, vector, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| startfadingblur
| void startfadingblur( float, float )
| void startfadingblur( float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| localtoworldcoords
| vector localtoworldcoords( vector )
| vector localtoworldcoords( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| worldtolocalcoords
| vector worldtolocalcoords( vector )
| vector worldtolocalcoords( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setturretspinning
| void setturretspinning( int )
| void setturretspinning( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| attachshieldmodel
| void attachshieldmodel()
| void attachshieldmodel()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| detachshieldmodel
| void detachshieldmodel()
| void detachshieldmodel()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setscriptmoverflag
| void setscriptmoverflag( int )
| void setscriptmoverflag( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| refreshshieldattachment
| void refreshshieldattachment()
| void refreshshieldattachment()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setcharacterindex
| void setcharacterindex( int )
| void setcharacterindex( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| useplayerfootsteptable
| void useplayerfootsteptable()
| void useplayerfootsteptable()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvisionsetforplayer
| void setvisionsetforplayer( string, float )
| void setvisionsetforplayer( string, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| useservervisionset
| void useservervisionset( int )
| void useservervisionset( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setinfraredvision
| void setinfraredvision( int )
| void setinfraredvision( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getcontrollertype
| string getcontrollertype()
| string getcontrollertype()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setactorweapon
| void setactorweapon( string, int )
| void setactorweapon( string, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| resetfov
| void resetfov()
| void resetfov()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
|}
|}
== Builtin Methods ==
== Builtin Methods ==
{| class="wikitable" style="width:100%"
{| class="wikitable" style="width:100%"
|-
|-
! Name !! Prototype !! Description
! style="width:40%" | Prototype  
! style="width:60%"| Description
|-
|-
| setstowedweapon
| void setstowedweapon( string )
| void setstowedweapon( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getstowedweapon
| string getstowedweapon()
| string getstowedweapon()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearstowedweapon
| void clearstowedweapon()
| void clearstowedweapon()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getammocount
| int getammocount( string )
| int getammocount( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvisibletoplayer
| void setvisibletoplayer( entity )
| void setvisibletoplayer( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setinvisibletoplayer
| void setinvisibletoplayer( entity, int )
| void setinvisibletoplayer( entity, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvisibletoall
| void setvisibletoall()
| void setvisibletoall()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setinvisibletoall
| void setinvisibletoall()
| void setinvisibletoall()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvisibletoteam
| void setvisibletoteam( team )
| void setvisibletoteam( team )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvisibletoallexceptteam
| void setvisibletoallexceptteam( team )
| void setvisibletoallexceptteam( team )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setforcenocull
| void setforcenocull()
| void setforcenocull()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| removeforcenocull
| void removeforcenocull()
| void removeforcenocull()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| islinkedto
| int islinkedto( entity )
| int islinkedto( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| allowtacticalinsertion
| void allowtacticalinsertion( int )
| void allowtacticalinsertion( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| allowbottargetting
| void allowbottargetting( int )
| void allowbottargetting( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getlinkedent
| entity getlinkedent()
| entity getlinkedent()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getorigin
| vector getorigin()
| vector getorigin()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getangles
| vector getangles()
| vector getangles()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getmins
| vector getmins()
| vector getmins()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getmaxs
| vector getmaxs()
| vector getmaxs()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getabsmins
| vector getabsmins()
| vector getabsmins()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getabsmaxs
| vector getabsmaxs()
| vector getabsmaxs()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getpointinbounds
| vector getpointinbounds( float, float, float )
| vector getpointinbounds( float, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| geteye
| vector geteye()
| vector geteye()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| geteyeapprox
| vector geteyeapprox()
| vector geteyeapprox()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| useby
| entity useby( entity )
| entity useby( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setstablemissile
| void setstablemissile( int )
| void setstablemissile( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| istouching
| int istouching( entity, vector )
| int istouching( entity, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| istouchingswept
| int istouchingswept( entity, float, float )
| int istouchingswept( entity, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| istouchingvolume
| int istouchingvolume( vector, vector, vector )
| int istouchingvolume( vector, vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playsound
| void playsound( string )
| void playsound( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playsoundwithnotify
| void playsoundwithnotify( string, conststring )
| void playsoundwithnotify( string, conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playsoundontag
| void playsoundontag( string, string )
| void playsoundontag( string, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playsoundasmaster
| void playsoundasmaster( string )
| void playsoundasmaster( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playsoundtoteam
| void playsoundtoteam( string, entity )
| void playsoundtoteam( string, entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playbattlechattertoteam
| void playbattlechattertoteam( string, string, team, entity )
| void playbattlechattertoteam( string, string, team, entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playsoundtoplayer
| void playsoundtoplayer( string )
| void playsoundtoplayer( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playloopsound
| void playloopsound( string, float )
| void playloopsound( string, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stoploopsound
| void stoploopsound( float )
| void stoploopsound( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stopsounds
| void stopsounds()
| void stopsounds()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playrumbleonentity
| void playrumbleonentity()
| void playrumbleonentity()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playrumblelooponentity
| void playrumblelooponentity()
| void playrumblelooponentity()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stoprumble
| void stoprumble( string )
| void stoprumble( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| delete
| void delete()
| void delete()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setmodel
| void setmodel( string )
| void setmodel( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setzombieshrink
| void setzombieshrink( int )
| void setzombieshrink( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setenemymodel
| void setenemymodel( string )
| void setenemymodel( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| dodamage
| void dodamage( float, vector, entity, entity )
| void dodamage( float, vector, entity, entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getnormalhealth
| float getnormalhealth()
| float getnormalhealth()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setnormalhealth
| void setnormalhealth( float )
| void setnormalhealth( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setmaxhealth
| void setmaxhealth( int )
| void setmaxhealth( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| show
| void show()
| void show()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| hide
| void hide()
| void hide()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| ghost
| void ghost()
| void ghost()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| ghostindemo
| void ghostindemo()
| void ghostindemo()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| showindemo
| void showindemo()
| void showindemo()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| laseron
| void laseron()
| void laseron()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| laseroff
| void laseroff()
| void laseroff()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| showtoplayer
| void showtoplayer( entity )
| void showtoplayer( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setcontents
| int setcontents( int )
| int setcontents( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| startfiring
| void startfiring()
| void startfiring()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stopfiring
| void stopfiring()
| void stopfiring()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| shootturret
| void shootturret()
| void shootturret()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stopshootturret
| void stopshootturret()
| void stopshootturret()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setmode
| void setmode( conststring )
| void setmode( conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getturretowner
| entity getturretowner()
| entity getturretowner()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| settargetentity
| void settargetentity( entity )
| void settargetentity( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getturretarclimits
| array getturretarclimits()
| array getturretarclimits()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setplayerspread
| void setplayerspread( float )
| void setplayerspread( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setaispread
| void setaispread( float )
| void setaispread( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setconvergencetime
| void setconvergencetime( float )
| void setconvergencetime( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setsuppressiontime
| void setsuppressiontime( float )
| void setsuppressiontime( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| cleartargetentity
| void cleartargetentity()
| void cleartargetentity()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setturretteam
| void setturretteam( team )
| void setturretteam( team )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| maketurretusable
| void maketurretusable()
| void maketurretusable()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| maketurretunusable
| void maketurretunusable()
| void maketurretunusable()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setturretaccuracy
| void setturretaccuracy()
| void setturretaccuracy()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setturretignoregoals
| void setturretignoregoals( int )
| void setturretignoregoals( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getturrettarget
| entity getturrettarget()
| entity getturrettarget()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| disconnectpaths
| void disconnectpaths()
| void disconnectpaths()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| connectpaths
| void connectpaths()
| void connectpaths()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getstance
| conststring getstance()
| conststring getstance()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setstance
| void setstance( conststring )
| void setstance( conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setcursorhint
| void setcursorhint( string, entity )
| void setcursorhint( string, entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setrevivehintstring
| void setrevivehintstring( string, team )
| void setrevivehintstring( string, team )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| sethintstringforperk
| void sethintstringforperk( string, string )
| void sethintstringforperk( string, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| sethintstring
| void sethintstring( string )
| void sethintstring( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setfovforkillcam
| void setfovforkillcam( int )
| void setfovforkillcam( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| sethintlowpriority
| void sethintlowpriority( int )
| void sethintlowpriority( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| usetriggerrequirelookat
| void usetriggerrequirelookat()
| void usetriggerrequirelookat()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| triggerignoreteam
| void triggerignoreteam()
| void triggerignoreteam()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| shellshock
| void shellshock( string, float, int )
| void shellshock( string, float, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getweaponforwarddir
| vector getweaponforwarddir()
| vector getweaponforwarddir()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getweaponmuzzlepoint
| vector getweaponmuzzlepoint()
| vector getweaponmuzzlepoint()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| gettagorigin
| vector gettagorigin( constlowercasestring )
| vector gettagorigin( constlowercasestring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| gettagangles
| vector gettagangles( constlowercasestring )
| vector gettagangles( constlowercasestring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getentnum
| void getentnum()
| void getentnum()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stopshellshock
| void stopshellshock()
| void stopshellshock()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setdepthoffield
| void setdepthoffield( float, float, float, float, float, float )
| void setdepthoffield( float, float, float, float, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setburn
| void setburn( float )
| void setburn( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setelectrified
| void setelectrified( float )
| void setelectrified( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| spawnnapalmgroundflame
| void spawnnapalmgroundflame( vector, string, vector, int )
| void spawnnapalmgroundflame( vector, string, vector, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| needsrevive
| void needsrevive( int )
| void needsrevive( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isinsecondchance
| bool isinsecondchance()
| bool isinsecondchance()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| depthinwater
| float depthinwater()
| float depthinwater()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| shootup
| void shootup( float )
| void shootup( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| depthofplayerinwater
| int depthofplayerinwater()
| int depthofplayerinwater()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| useweaponhidetags
| void useweaponhidetags( string )
| void useweaponhidetags( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| useweaponmodel
| void useweaponmodel( string, string, int )
| void useweaponmodel( string, string, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| starttanning
| void starttanning()
| void starttanning()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stopburning
| void stopburning()
| void stopburning()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setwaterdrops
| void setwaterdrops( int )
| void setwaterdrops( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| restoredefaultdroppitch
| void restoredefaultdroppitch()
| void restoredefaultdroppitch()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isfiringturret
| bool isfiringturret()
| bool isfiringturret()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isturretlockedon
| bool isturretlockedon()
| bool isturretlockedon()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setviewmodeldepthoffield
| void setviewmodeldepthoffield( float, float )
| void setviewmodeldepthoffield( float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| viewkick
| void viewkick( float, vector )
| void viewkick( float, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| localtoworldcoords
| vector localtoworldcoords( vector )
| vector localtoworldcoords( vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setrightarc
| void setrightarc( float )
| void setrightarc( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setleftarc
| void setleftarc( float )
| void setleftarc( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| settoparc
| void settoparc( float )
| void settoparc( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setbottomarc
| void setbottomarc( float )
| void setbottomarc( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| radiusdamage
| void radiusdamage()
| void radiusdamage()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| detonate
| void detonate( entity )
| void detonate( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| damageconetrace
| void damageconetrace()
| void damageconetrace()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| sightconetrace
| void sightconetrace()
| void sightconetrace()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| heliturretsighttrace
| int heliturretsighttrace( vector, entity, int )
| int heliturretsighttrace( vector, entity, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| heliturretdogtrace
| int heliturretdogtrace( vector, entity, int )
| int heliturretdogtrace( vector, entity, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| playersighttrace
| int playersighttrace( vector, int, int )
| int playersighttrace( vector, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| visionsetlerpratio
| void visionsetlerpratio( float )
| void visionsetlerpratio( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| docowardswayanims
| float docowardswayanims()
| float docowardswayanims()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| startpoisoning
| void startpoisoning()
| void startpoisoning()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stoppoisoning
| void stoppoisoning()
| void stoppoisoning()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| startbinocs
| void startbinocs()
| void startbinocs()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stopbinocs
| void stopbinocs()
| void stopbinocs()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isflared
| bool isflared()
| bool isflared()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| ispoisoned
| bool ispoisoned()
| bool ispoisoned()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setcameraspikeactive
| void setcameraspikeactive( int )
| void setcameraspikeactive( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isinsideheightlock
| int isinsideheightlock()
| int isinsideheightlock()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| ismissileinsideheightlock
| int ismissileinsideheightlock()
| int ismissileinsideheightlock()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isonground
| int isonground( int )
| int isonground( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getgroundent
| entity getgroundent()
| entity getgroundent()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getmoverent
| entity getmoverent()
| entity getmoverent()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| issprinting
| int issprinting()
| int issprinting()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setanim
| void setanim()
| void setanim()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| useanimtree
| void useanimtree( animtree )
| void useanimtree( animtree )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| animscripted
| void animscripted()
| void animscripted()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| animscriptedskiprestart
| void animscriptedskiprestart()
| void animscriptedskiprestart()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| animrelative
| void animrelative()
| void animrelative()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stopanimscripted
| void stopanimscripted()
| void stopanimscripted()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearanim
| void clearanim( anim, float )
| void clearanim( anim, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setentityanimrate
| void setentityanimrate( float )
| void setentityanimrate( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getentityanimrate
| float getentityanimrate()
| float getentityanimrate()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getcentroid
| vector getcentroid()
| vector getcentroid()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| ismartyrdomgrenade
| bool ismartyrdomgrenade()
| bool ismartyrdomgrenade()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getentitynumber
| int getentitynumber()
| int getentitynumber()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getentitytype
| int getentitytype()
| int getentitytype()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| enablegrenadetouchdamage
| void enablegrenadetouchdamage()
| void enablegrenadetouchdamage()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| disablegrenadetouchdamage
| void disablegrenadetouchdamage()
| void disablegrenadetouchdamage()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| enableaimassist
| void enableaimassist()
| void enableaimassist()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| disableaimassist
| void disableaimassist()
| void disableaimassist()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| placespawnpoint
| void placespawnpoint()
| void placespawnpoint()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setspawnclientflag
| void setspawnclientflag( string )
| void setspawnclientflag( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| directionalhitindicator
| void directionalhitindicator( int, int )
| void directionalhitindicator( int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| sendkillstreakdamageevent
| void sendkillstreakdamageevent( int )
| void sendkillstreakdamageevent( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setplayergravity
| void setplayergravity( int )
| void setplayergravity( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearplayergravity
| void clearplayergravity()
| void clearplayergravity()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| sendfaceevent
| void sendfaceevent( conststring )
| void sendfaceevent( conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setteamfortrigger
| void setteamfortrigger( team )
| void setteamfortrigger( team )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setexcludeteamfortrigger
| void setexcludeteamfortrigger( team )
| void setexcludeteamfortrigger( team )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setperkfortrigger
| void setperkfortrigger( string )
| void setperkfortrigger( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setignoreentfortrigger
| void setignoreentfortrigger( entity )
| void setignoreentfortrigger( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clientclaimtrigger
| void clientclaimtrigger( entity )
| void clientclaimtrigger( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clientreleasetrigger
| void clientreleasetrigger( entity )
| void clientreleasetrigger( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| releaseclaimedtrigger
| void releaseclaimedtrigger()
| void releaseclaimedtrigger()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isitemlocked
| int isitemlocked( int )
| int isitemlocked( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isitempurchased
| int isitempurchased( int )
| int isitempurchased( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| uploadleaderboards
| void uploadleaderboards()
| void uploadleaderboards()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setnemesisxuid
| void setnemesisxuid( string )
| void setnemesisxuid( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getloadoutitem
| int getloadoutitem()
| int getloadoutitem()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isbonuscardactive
| int isbonuscardactive( int, int )
| int isbonuscardactive( int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getloadoutitemref
| string getloadoutitemref()
| string getloadoutitemref()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getloadoutweapon
| string getloadoutweapon( int, string )
| string getloadoutweapon( int, string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getloadoutperks
| array getloadoutperks( int )
| array getloadoutperks( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getloadoutallocation
| int getloadoutallocation( int )
| int getloadoutallocation( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setmovespeedscale
| void setmovespeedscale( float )
| void setmovespeedscale( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getmovespeedscale
| float getmovespeedscale()
| float getmovespeedscale()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| logstring
| void logstring()
| void logstring()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| missile_settarget
| void missile_settarget( entity, vector )
| void missile_settarget( entity, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| missile_dronesetvisible
| void missile_dronesetvisible( int )
| void missile_dronesetvisible( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isonladder
| bool isonladder()
| bool isonladder()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| ismantling
| bool ismantling()
| bool ismantling()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isonslide
| bool isonslide()
| bool isonslide()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| startdoorbreach
| void startdoorbreach()
| void startdoorbreach()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| stopdoorbreach
| void stopdoorbreach()
| void stopdoorbreach()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| startragdoll
| void startragdoll( int )
| void startragdoll( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isragdoll
| int isragdoll()
| int isragdoll()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| launchragdoll
| void launchragdoll( vector, constlowercasestring )
| void launchragdoll( vector, constlowercasestring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| launchvehicle
| void launchvehicle( vector, vector )
| void launchvehicle( vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setblur
| void setblur( float, float )
| void setblur( float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| resetmissiledetonationtime
| void resetmissiledetonationtime( float )
| void resetmissiledetonationtime( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| giveachievement
| void giveachievement()
| void giveachievement()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setzombiename
| void setzombiename( string )
| void setzombiename( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setentgravitytrajectory
| void setentgravitytrajectory( int )
| void setentgravitytrajectory( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setvehicleteam
| void setvehicleteam( team )
| void setvehicleteam( team )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setteam
| void setteam( team )
| void setteam( team )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getteam
| team getteam()
| team getteam()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setowner
| void setowner( entity )
| void setowner( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setmissileowner
| void setmissileowner( entity )
| void setmissileowner( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setentityweapon
| void setentityweapon( string )
| void setentityweapon( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setturretowner
| void setturretowner( entity )
| void setturretowner( entity )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setturrettype
| void setturrettype( string )
| void setturrettype( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getcorpseanim
| anim getcorpseanim( animsindex )
| anim getcorpseanim( animsindex )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| itemweaponsetammo
| void itemweaponsetammo( int, int, int )
| void itemweaponsetammo( int, int, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setturretcarried
| void setturretcarried( int )
| void setturretcarried( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setturretminimapvisible
| void setturretminimapvisible( int )
| void setturretminimapvisible( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setmissilecoasting
| void setmissilecoasting( int )
| void setmissilecoasting( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setweapon
| void setweapon( string )
| void setweapon( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| gib
| void gib( conststring, object )
| void gib( conststring, object )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setphysparams
| void setphysparams( float, float, float )
| void setphysparams( float, float, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setplayercollision
| void setplayercollision( int )
| void setplayercollision( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| reportuser
| void reportuser( string )
| void reportuser( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setplayercurrentobjective
| void setplayercurrentobjective()
| void setplayercurrentobjective()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setplayercurrentstreak
| void setplayercurrentstreak( int )
| void setplayercurrentstreak( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getvelocity
| vector getvelocity()
| vector getvelocity()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| spawnactor
| entity spawnactor( int, conststring )
| entity spawnactor( int, conststring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getshootatpos
| vector getshootatpos()
| vector getshootatpos()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| predictspawnpoint
| void predictspawnpoint( vector, vector )
| void predictspawnpoint( vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setdefaultdroppitch
| void setdefaultdroppitch( float )
| void setdefaultdroppitch( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setscanningpitch
| void setscanningpitch( float )
| void setscanningpitch( float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| launchbomb
| entity launchbomb( string, vector, vector )
| entity launchbomb( string, vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| magicgrenade
| entity magicgrenade( string, vector, vector )
| entity magicgrenade( string, vector, vector )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| makegrenadedud
| void makegrenadedud()
| void makegrenadedud()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setclientflag
| void setclientflag( int )
| void setclientflag( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getclientflag
| int getclientflag( int )
| int getclientflag( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| clearclientflag
| void clearclientflag( int )
| void clearclientflag( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setscriptmoverflag
| void setscriptmoverflag( int )
| void setscriptmoverflag( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setmovingplatformenabled
| void setmovingplatformenabled()
| void setmovingplatformenabled()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| fakefire
| void fakefire( entity, vector, string, int )
| void fakefire( entity, vector, string, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| makeusable
| void makeusable( team )
| void makeusable( team )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| makeunusable
| void makeunusable()
| void makeunusable()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| predictgrenade
| vector predictgrenade()
| vector predictgrenade()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setdangerous
| void setdangerous( team, int )
| void setdangerous( team, int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isdangerous
| bool isdangerous( team )
| bool isdangerous( team )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getindexforactivecontract
| void getindexforactivecontract()
| void getindexforactivecontract()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getactivecontractprogress
| void getactivecontractprogress()
| void getactivecontractprogress()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| incrementactivecontractprogress
| void incrementactivecontractprogress()
| void incrementactivecontractprogress()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| incrementactivecontracttime
| void incrementactivecontracttime()
| void incrementactivecontracttime()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isactivecontractcomplete
| void isactivecontractcomplete()
| void isactivecontractcomplete()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| hasactivecontractexpired
| void hasactivecontractexpired()
| void hasactivecontractexpired()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getactivecontracttimepassed
| void getactivecontracttimepassed()
| void getactivecontracttimepassed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| resetactivecontractprogress
| void resetactivecontractprogress()
| void resetactivecontractprogress()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getpregameclass
| void getpregameclass()
| void getpregameclass()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getpregameteam
| void getpregameteam()
| void getpregameteam()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setpregameclass
| void setpregameclass()
| void setpregameclass()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setpregameteam
| void setpregameteam()
| void setpregameteam()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| recordleaguepreloser
| void recordleaguepreloser()
| void recordleaguepreloser()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| luinotifyeventtospectators
| void luinotifyeventtospectators()
| void luinotifyeventtospectators()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| istestclient
| bool istestclient()
| bool istestclient()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setworldfogactivebank
| void setworldfogactivebank( int )
| void setworldfogactivebank( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| iszbarrier
| bool iszbarrier()
| bool iszbarrier()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getnumzbarrierpieces
| int getnumzbarrierpieces()
| int getnumzbarrierpieces()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getzbarrierpiecestate
| conststring getzbarrierpiecestate( int )
| conststring getzbarrierpiecestate( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setzbarrierpiecestate
| void setzbarrierpiecestate( int, constlowercasestring, float )
| void setzbarrierpiecestate( int, constlowercasestring, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| iszbarrieropen
| bool iszbarrieropen()
| bool iszbarrieropen()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| iszbarrierclosed
| bool iszbarrierclosed()
| bool iszbarrierclosed()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| hidezbarrierpiece
| void hidezbarrierpiece( int )
| void hidezbarrierpiece( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| showzbarrierpiece
| void showzbarrierpiece( int )
| void showzbarrierpiece( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| zbarrierpieceusedefaultmodel
| void zbarrierpieceusedefaultmodel( int )
| void zbarrierpieceusedefaultmodel( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| zbarrierpieceusealternatemodel
| void zbarrierpieceusealternatemodel( int )
| void zbarrierpieceusealternatemodel( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| zbarrierpieceuseupgradedmodel
| void zbarrierpieceuseupgradedmodel( int )
| void zbarrierpieceuseupgradedmodel( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| zbarrierpieceuseboxriselogic
| void zbarrierpieceuseboxriselogic( int )
| void zbarrierpieceuseboxriselogic( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getupgradedpiecenumlives
| int getupgradedpiecenumlives( int )
| int getupgradedpiecenumlives( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getzbarrierpieceindicesinstate
| array getzbarrierpieceindicesinstate( constlowercasestring )
| array getzbarrierpieceindicesinstate( constlowercasestring )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getzbarrierpieceanimlengthforstate
| float getzbarrierpieceanimlengthforstate( int, constlowercasestring, float )
| float getzbarrierpieceanimlengthforstate( int, constlowercasestring, float )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getzbarrierpieceanimstate
| conststring getzbarrierpieceanimstate( int )
| conststring getzbarrierpieceanimstate( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getzbarrierpieceanimsubstate
| conststring getzbarrierpieceanimsubstate( int )
| conststring getzbarrierpieceanimsubstate( int )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| zbarriersupportszombietaunts
| int zbarriersupportszombietaunts()
| int zbarriersupportszombietaunts()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| zbarriersupportszombiereachthroughattacks
| int zbarriersupportszombiereachthroughattacks()
| int zbarriersupportszombiereachthroughattacks()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getzbarriertauntanimstate
| conststring getzbarriertauntanimstate()
| conststring getzbarriertauntanimstate()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getzbarrierreachthroughattackanimstate
| conststring getzbarrierreachthroughattackanimstate()
| conststring getzbarrierreachthroughattackanimstate()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getzbarriernumattackslots
| int getzbarriernumattackslots()
| int getzbarriernumattackslots()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getzbarrierattackslothorzoffset
| float getzbarrierattackslothorzoffset()
| float getzbarrierattackslothorzoffset()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setzbarriercolmodel
| void setzbarriercolmodel( string )
| void setzbarriercolmodel( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| getweaponoptic
| string getweaponoptic( string )
| string getweaponoptic( string )
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| setaltusetrigger
| void setaltusetrigger()
| void setaltusetrigger()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
| isaltusetrigger
| bool isaltusetrigger()
| bool isaltusetrigger()
|
| {{ScriptUsage
|Summary=
|Example=<pre></pre>
}}
|-
|-
|}
|}

Revision as of 20:06, 19 October 2015

Player Methods

Prototype Description
void giveweapon( string, int, int ) Summary:

Gives a weapon to the specified client with an optional argument for camo and attachments. A full list containing all the weapon names can be found here http://pastebin.com/wEq07Yzw

Example:

player giveweapon("mp7_mp", 255, 0);
void updateweaponoptions( string, int ) Summary:



Example:


void setblockweaponpickup( string, int ) Summary:



Example:


int calcweaponoptions( int, int, int, int, int ) Summary:



Example:


int calcplayeroptions( int ) Summary:



Example:


void setplayerrenderoptions( int ) Summary:



Example:


void nextplayerrenderoption( string ) Summary:



Example:


void bbclasschoice( int, string, string ) Summary:



Example:


void sethighlighted() Summary:



Example:


void takeweapon( string ) Summary:

Removes the first occurrence of the specified weapon from a client.

Example:

player takeweapon("mp7_mp");
bool isthrowinggrenade() Summary:

Returns true if the specified client is throwing a grenade.

Example:

if (player isthrowinggrenade())
void forcegrenadethrow() Summary:

Forces the specified client to throw a grenade.

Example:

player forcegrenadethrow();
bool isfiring() Summary:

Returns true if the specified client is shooting.

Example:

if (player isfiring())
bool ismeleeing() Summary:

Returns true if the specified client is meleeing.

Example:

if (player ismeleeing())
bool isswitchingweapons() Summary:

Returns true if the specified client is switching weapons.

Example:

if (player isswitchingweapons())
bool isreloading() Summary:

Returns true if the specified client is reloading.

Example:

if (player isreloading())
void takeallweapons() Summary:

Removes all weapons from the specified client including the default melee knife.

Example:

player takeallweapons();
bool isinmovemode() Summary:



Example:


string getcurrentweapon() Summary:

Returns the specified clients currently held weapon.

Example:

currentWeapon = player getcurrentweapon();
float getcurrentweaponspinlerp() Summary:



Example:


void setcurrentweaponspinlerp( float ) Summary:



Example:


string getcurrentweaponaltweapon() Summary:



Example:


int isweaponoverheating( int ) Summary:

Returns 1 if the specified client's slot index is overheating.

Example:

if (player isweaponoverheating(0))
void setweaponoverheating( int, float ) Summary:

Sets the specified clients slot index overheat to a percentage.

Example:

player setweaponoverheating(0, 99);
string getcurrentoffhand() Summary:

Returns the current lethal/tactical or equipment.

Example:

offhandWeapon = player getcurrentoffhand();
bool isusingoffhand() Summary:

Returns true if the specified client is using their offhand weapon.

Example:

if (player isusingoffhand())
void forceoffhandend() Summary:

Forces the specified client to use their offhand weapon.

Example:

player forceoffhandend()
bool hasweapon( string ) Summary:

Returns true if the specified client has the specified weapon.

Example:

if (player hasweapon("mp7_mp"))
void switchtoweapon() Summary:

Forces the specified weapon to switch to the specified weapon.

Example:

player switchtoweapon("mp7_mp");
void switchtoweaponimmediate() Summary:



Example:


bool switchtooffhand( string ) Summary:



Example:


void weaponplayejectbrass() Summary:



Example:


int getlockonradius() Summary:



Example:


int getlockonspeed() Summary:



Example:


void givestartammo( string ) Summary:

Sets the specified clients' specified weapon to the starting ammunition amount.

Example:

player givestartammo("mp7_mp");
void givemaxammo( string ) Summary:

Gives the specified clients' specified weapon maximum ammunition.

Example:

player givemaxammo("mp7_mp");
float getfractionstartammo( string ) Summary:

Returns a float of the specified weapons starting ammunition.

Example:

fractionStartAmmo = player getfractionstartammo("mp7_mp");
float getfractionmaxammo( string ) Summary:

Returns a float of the specified weapons maximum ammunition.

Example:

fractionMaxAmmo = player getfractionmaxammo("mp7_mp");
void setweaponheatpercent( string, float ) Summary:



Example:


void setorigin( vector ) Summary:



Example:


void setvelocity( vector ) Summary:



Example:


void setplayerangles( vector ) Summary:



Example:


vector getplayerangles() Summary:



Example:


vector getgunangles() Summary:



Example:


vector getplayercamerapos() Summary:



Example:


void cameraactivate( int ) Summary:



Example:


void camerasetposition( vector, vector ) Summary:



Example:


void camerasetlookat( entity, vector ) Summary:



Example:


void gamepadusedlast() Summary:



Example:


int usebuttonpressed() Summary:

Returns 1 if the use button is pressed otherwise 0.

Example:

if (player usebuttonpressed())
int changeseatbuttonpressed() Summary:



Example:


int attackbuttonpressed() Summary:

Returns 1 if the shooting button is pressed otherwise 0.

Example:

if (player attackbuttonpressed())
int actionslotonebuttonpressed() Summary:



Example:


int actionslottwobuttonpressed() Summary:



Example:


int actionslotthreebuttonpressed() Summary:



Example:


int actionslotfourbuttonpressed() Summary:



Example:


int adsbuttonpressed() Summary:

Returns 1 if the aiming down the sights button is pressed otherwise 0.

Example:

if (player adsbuttonpressed())
int throwbuttonpressed() Summary:



Example:


int meleebuttonpressed() Summary:

Returns 1 if the melee button is pressed otherwise 0.

Example:

if (player meleebuttonpressed())
int jumpbuttonpressed() Summary:

Returns 1 if the jumping button is pressed otherwise 0

Example:

if (player jumpbuttonpressed())
int stancebuttonpressed() Summary:



Example:


int fragbuttonpressed() Summary:

Returns 1 if the lethal grenade button is pressed otherwise 0.

Example:

if (player fragbuttonpressed())
int secondaryoffhandbuttonpressed() Summary:



Example:


int inventorybuttonpressed() Summary:



Example:


int sprintbuttonpressed() Summary:



Example:


void sprintuprequired() Summary:



Example:


float playerads() Summary:



Example:


void pingplayer() Summary:



Example:


void setviewmodel( string ) Summary:



Example:


conststring getviewmodel() Summary:



Example:


void setoffhandsecondaryclass( string ) Summary:



Example:


conststring getoffhandsecondaryclass() Summary:



Example:


string setoffhandprimaryclass( string ) Summary:



Example:


void beginlocationselection() Summary:



Example:


void beginlocationairstrikeselection() Summary:



Example:


void beginlocationmortarselection() Summary:



Example:


void beginlocationartilleryselection() Summary:



Example:


void beginlocationcomlinkselection() Summary:



Example:


void beginlocationnapalmselection() Summary:



Example:


void endlocationselection() Summary:



Example:


void clientsyssetstate( int, string ) Summary:



Example:


void weaponlockstart( entity ) Summary:



Example:


void weaponlockfinalize( entity ) Summary:



Example:


void weaponlockfree() Summary:



Example:


void weaponlocktargettooclose( int ) Summary:



Example:


void weaponlocknoclearance( int ) Summary:



Example:


void buttonpressed() Summary:



Example:


void giveweaponnextattachment() Summary:



Example:


void givenextbaseweapon() Summary:



Example:


void getnormalizedmovement() Summary:



Example:


void getnormalizedcameramovement() Summary:



Example:


void sayall() Summary:



Example:


void sayteam() Summary:



Example:


void setspawnweapon( string ) Summary:



Example:


void initialweaponraise( string ) Summary:



Example:


void seteverhadweaponall( int ) Summary:



Example:


void dropitem( string, constlowercasestring ) Summary:



Example:


void dropscavengeritem( string ) Summary:



Example:


int hasagrenadepulledback() Summary:



Example:


bool finishplayerdamage( entity, entity, int, string, vector, vector, conststring, int, int ) Summary:



Example:


void finishmeleehit( entity, string, vector, vector, int, int, int ) Summary:



Example:


void reviveplayer() Summary:



Example:


void undolaststand() Summary:



Example:


void suicide() Summary:

Kills the specified player.

Example:

player suicide();
void turnedhuman() Summary:



Example:


bool isinvehicle() Summary:



Example:


bool isremotecontrolling() Summary:



Example:


bool isweaponviewonlylinked() Summary:



Example:


int allowstand( int ) Summary:



Example:


int allowcrouch( int ) Summary:



Example:


int allowprone( int ) Summary:



Example:


int allowlean( int ) Summary:



Example:


entity getvehicleoccupied() Summary:



Example:


array getfriendlies( int ) Summary:



Example:


array getenemies( int ) Summary:



Example:


int openmenu( string ) Summary:



Example:


int openmenunomouse( string ) Summary:



Example:


void closemenu() Summary:



Example:


void closeingamemenu() Summary:



Example:


void freezecontrols( int ) Summary:

Freezes/unfreezes the controls of the specified player

Example:

player freezecontrols(1);
void freezecontrolsallowlook( int ) Summary:



Example:


int arecontrolsfrozen() Summary:



Example:


void disableusability() Summary:



Example:


void enableusability() Summary:



Example:


void disableweapons() Summary:



Example:


void enableweapons() Summary:



Example:


void disabledeathstreak() Summary:



Example:


void enabledeathstreak() Summary:



Example:


int deathstreakactive() Summary:



Example:


void disableoffhandweapons() Summary:



Example:


void enableoffhandweapons() Summary:



Example:


void disableweaponcycling() Summary:



Example:


void enableweaponcycling() Summary:



Example:


void revive() Summary:



Example:


void setlaststandprevweap( string ) Summary:



Example:


void setreverb() Summary:



Example:


void deactivatereverb() Summary:



Example:


void setchannelvolumes() Summary:



Example:


void deactivatechannelvolumes() Summary:



Example:


int setweaponammoclip( string, int ) Summary:



Example:


void setweaponammostock( string, int ) Summary:



Example:


int getweaponammoclip( string ) Summary:



Example:


int getweaponammostock( string ) Summary:



Example:


int anyammoforweaponmodes( string ) Summary:



Example:


void iprintln() Summary:

Prints text for the specified player only in the killfeed.

Example:

player iprintln("Hello, World!");
void iprintlnbold() Summary:

Prints text for the specified player only in the middle of the screen.

Example:

player iprintlnBold("Hello, World!");
void spawn( vector, vector ) Summary:



Example:


void setentertime( int ) Summary:



Example:


void cloneplayer( int ) Summary:

Creates a clone of the specified player at current position

Example:

player cloneplayer();
void setclientfov() Summary:



Example:


void setclientthirdperson( int ) Summary:



Example:


void setclientthirdpersonangle() Summary:



Example:


void setclientcompass() Summary:



Example:


void setclientscriptmainmenu() Summary:



Example:


void setclientcgobjectivetext() Summary:



Example:


void setclientplayersprinttime() Summary:



Example:


void setclientnumlives() Summary:



Example:


void setclientdrawtalk() Summary:



Example:


void setclientammocounterhide() Summary:



Example:


void setclientminiscoreboardhide() Summary:



Example:


void setclienthudhardcore() Summary:



Example:


void setclientplayerpushamount() Summary:



Example:


void setclientaimlockonpitchstrength() Summary:



Example:


void setclientuivisibilityflag( string, int ) Summary:



Example:


void setclientprofilevar( string, string ) Summary:



Example:


void playclientairstrike( vector, int, string, string, int, string, int ) Summary:



Example:


void playclientnapalm( vector, int, string, string, int, string, int ) Summary:



Example:


void setcurrentspectatorclient( entity ) Summary:



Example:


void relinktoturret( entity ) Summary:



Example:


void carryturret( entity, vector, vector ) Summary:



Example:


void stopcarryturret( entity, vector, vector ) Summary:



Example:


bool iscarryingturret() Summary:



Example:


array canplayerplaceturret( entity ) Summary:



Example:


void setplacementhint( int ) Summary:



Example:


void linkguidedmissilecamera() Summary:



Example:


void unlinkguidedmissilecamera() Summary:



Example:


void gpsjammeractive() Summary:



Example:


void gpsjammerinactive() Summary:



Example:


void spawnprotectionactive() Summary:



Example:


void spawnprotectioninactive() Summary:



Example:


void dualgrenadesactive() Summary:



Example:


void dualgrenadesinactive() Summary:



Example:


void linktomissile( entity, int ) Summary:



Example:


void unlinkfrommissile() Summary:



Example:


array canplaceriotshield( conststring ) Summary:



Example:


void setheldweaponmodel( int ) Summary:



Example:


void setriotshieldfailhint() Summary:



Example:


array canplayerplacevehicle( float, float, float, float, float, float ) Summary:



Example:


void remotecontrolturret( entity ) Summary:



Example:


void remotecontrolturretoff( entity ) Summary:



Example:


void recordkillstreakevent( int ) Summary:



Example:


void recordkillstreakendevent( int ) Summary:



Example:


void recordgameevent( string ) Summary:



Example:


void recordkillmodifier( string ) Summary:



Example:


void recordmedal( string ) Summary:



Example:


void recordloadoutandperks() Summary:



Example:


void recordloadoutperksandkillstreaks( string, string, string, string, int, int, int ) Summary:



Example:


void recordmultikill( int ) Summary:



Example:


void incrementlifestat() Summary:



Example:


void incrementplayerstat( string, int ) Summary:



Example:


void recordplayerdeathzombies() Summary:



Example:


void recordplayerdownzombies( string ) Summary:



Example:


void recordplayerrevivezombies( entity ) Summary:



Example:


void recordzombiezone( string, string ) Summary:



Example:


int islookingat( entity ) Summary:



Example:


void playlocalsound( string ) Summary:



Example:


void stoplocalsound( string ) Summary:



Example:


int istalking() Summary:



Example:


void allowspectateteam( team, int ) Summary:



Example:


int getguid() Summary:



Example:


string getxuid() Summary:



Example:


int ishost() Summary:

Returns 1 if the specified player is host, 0 otherwise

Example:

if (player isHost())
int islocaltohost() Summary:



Example:


int allowads( int ) Summary:



Example:


int allowjump( int ) Summary:



Example:


int allowsprint( int ) Summary:



Example:


int allowmelee( int ) Summary:



Example:


int forceslick( int ) Summary:



Example:


void setsprintduration( float ) Summary:



Example:


void setsprintcooldown( float ) Summary:



Example:


void setspreadoverride( int ) Summary:



Example:


void resetspreadoverride() Summary:



Example:


void setactionslot( int, string, string ) Summary:



Example:


string getinventoryweapon() Summary:



Example:


void setinventoryweapon( string ) Summary:



Example:


array getweaponslist( int ) Summary:



Example:


array getweaponslistprimaries() Summary:



Example:


void startrevive() Summary:



Example:


void stoprevive() Summary:



Example:


void applyknockback( int, vector ) Summary:



Example:


void setperk( string ) Summary:

Gives the player the specified perk

Example:

player setperk("specialty_fastladderclimb");
bool hasperk( string ) Summary:

Returns true if the player has the specified perk, false otherwise

Example:

if (hasperk("specialty_fastladderclimb"))

array getperks() Summary:



Example:


void clearperks() Summary:

Removes all perks from the player

Example:

player clearperks();
void unsetperk( string ) Summary:

Removes a specific perk from the player

Example:

player unsetperk("specialty_fastladderclimb");
void setrank( int, int ) Summary:



Example:


void enableinvulnerability() Summary:

Enables god mode/invincibility for the specific player

Example:

player enableinvulnerability();
void disableinvulnerability() Summary:

Disables god mode/invincibility for the specific player

Example:

player disableinvulnerability();
void enableafterlife() Summary:



Example:


void disableafterlife() Summary:



Example:


bool addgoal( vector, float, int, conststring, conststring ) Summary:



Example:


void cancelgoal( conststring ) Summary:



Example:


bool atgoal( conststring ) Summary:



Example:


bool hasgoal( conststring ) Summary:



Example:


vector getgoal( conststring ) Summary:



Example:


void pressusebutton( float ) Summary:



Example:


void pressattackbutton( int ) Summary:



Example:


void pressdtpbutton() Summary:



Example:


bool throwgrenade( string, vector ) Summary:



Example:


float getlookaheaddist() Summary:



Example:


vector getlookaheaddir() Summary:



Example:


void lookat( vector ) Summary:



Example:


void clearlookat() Summary:



Example:


void allowattack( int ) Summary:



Example:


void pressads( int ) Summary:



Example:


void pressmelee() Summary:



Example:


array getthreats( float ) Summary:



Example:


vector predictposition( entity, int ) Summary:



Example:


bool botsighttracepassed( entity, vector ) Summary:



Example:


void botsetfailsa( pathnode ) Summary:



Example:


void botsetdefaultclass( int, string ) Summary:



Example:


void botclassadditem( int, string ) Summary:



Example:


void botclasssetweaponoption( int, int, string, int ) Summary:



Example:


void botclassaddattachment( int, string, string, string ) Summary:



Example:


void botleavegame() Summary:



Example:


int issplitscreen() Summary:



Example:


int isplayeronsamemachine( entity ) Summary:



Example:


void playerknockback( int ) Summary:



Example:


float getplayerviewheight() Summary:



Example:


void ishostforbots() Summary:



Example:


void murderline( vector, vector, string ) Summary:



Example:


void setoffhandvisible( int ) Summary:



Example:


void fakedamagefrom( vector ) Summary:



Example:


int getsnapshotackindex() Summary:



Example:


string getleagueteamid() Summary:



Example:


Script Entity Methods

Prototype Description
void moveto( vector ) Summary:



Example:


void movex( float ) Summary:



Example:


void movey( float ) Summary:



Example:


void movez( float ) Summary:



Example:


void movegravity( vector, float ) Summary:



Example:


void moveslide( vector, float, vector ) Summary:



Example:


void stopmoveslide() Summary:



Example:


void rotateto( vector ) Summary:



Example:


void rotatepitch( float ) Summary:



Example:


void rotateyaw( float ) Summary:



Example:


void rotateroll( float ) Summary:



Example:


void devaddpitch( float ) Summary:



Example:


void devaddyaw( float ) Summary:



Example:


void devaddroll( float ) Summary:



Example:


void vibrate( vector, float, float, float ) Summary:



Example:


void rotatevelocity( vector ) Summary:



Example:


void solid() Summary:



Example:


void notsolid() Summary:



Example:


void setcandamage( int ) Summary:



Example:


void physicslaunch( vector, vector ) Summary:



Example:


void setcheapflag( int ) Summary:



Example:


void ignorecheapentityflag( int ) Summary:



Example:


Script Vehicle Methods

Prototype Description
void attachpath( entityref ) Summary:



Example:


string vehgetmodel() Summary:



Example:


array getattachpos( entityref ) Summary:



Example:


void startpath() Summary:



Example:


entitynum drivepath( int ) Summary:



Example:


void pathmove( vector, vector, vector ) Summary:



Example:


void pathmoveclear() Summary:



Example:


void pathfixedoffset( vector ) Summary:



Example:


void pathfixedoffsetclear() Summary:



Example:


void pathvariableoffset( vector, float ) Summary:



Example:


void pathvariableoffsetclear() Summary:



Example:


vector getpathfixedoffset() Summary:



Example:


vector getpathvariableoffset() Summary:



Example:


void setdrivepathphysicsscale( float ) Summary:



Example:


void setswitchnode( entityref, entityref ) Summary:



Example:


void setspeed( float, float, float ) Summary:



Example:


void setspeedimmediate( float, float, float ) Summary:



Example:


float getspeed() Summary:



Example:


float getspeedmph() Summary:



Example:


float getgoalspeedmph() Summary:



Example:


void setbrake( float ) Summary:



Example:


float getbrake() Summary:



Example:


float gethandbrake() Summary:



Example:


float getscriptbrake() Summary:



Example:


void setacceleration( float ) Summary:



Example:


void setdeceleration( float ) Summary:



Example:


void resumespeed( float ) Summary:



Example:


void setyawspeed( float, float, float, float ) Summary:



Example:


void setmaxpitchroll( float, float ) Summary:



Example:


void setturningability( float ) Summary:



Example:


void setjitterparams( vector, float, float ) Summary:



Example:


void setairresistance( float ) Summary:



Example:


float getsteering() Summary:



Example:


float getthrottle() Summary:



Example:


void setphysangles( vector ) Summary:



Example:


void sethoverparams( float, float, float ) Summary:



Example:


void joltbody( vector, float, float, float ) Summary:



Example:


void freevehicle() Summary:



Example:


string getwheelsurface( conststring ) Summary:



Example:


entity getvehicleowner() Summary:



Example:


int isvehicleusable() Summary:



Example:


void makevehicleusable() Summary:



Example:


void makevehicleunusable() Summary:



Example:


void usevehicle( entity, int, int ) Summary:



Example:


void setviewclamp( entity, float, float, float, float ) Summary:



Example:


void resetviewclamp( entity, entity ) Summary:



Example:


void setvehiclelookattext( conststring, constistring ) Summary:



Example:


void setneargoalnotifydist( float ) Summary:



Example:


bool setvehgoalpos( vector, int, int, int ) Summary:



Example:


void clearvehgoalpos() Summary:



Example:


void setplanegoalpos( float, vector ) Summary:



Example:


void setplanebarrelroll( int, float ) Summary:



Example:


void setgoalyaw( float ) Summary:



Example:


void cleargoalyaw() Summary:



Example:


void settargetyaw( float ) Summary:



Example:


void cleartargetyaw() Summary:



Example:


void setlookatent( entity ) Summary:



Example:


void clearlookatent() Summary:



Example:


void takeplayercontrol() Summary:



Example:


void returnplayercontrol() Summary:



Example:


void setturrettargetvec( vector ) Summary:



Example:


void setturrettargetent( entity, vector ) Summary:



Example:


void clearturrettarget() Summary:



Example:


void setgunnertargetvec( vector, int ) Summary:



Example:


vector getgunnertargetvec( int ) Summary:



Example:


void setgunnertargetent( entity, vector, int ) Summary:



Example:


void cleargunnertarget( int ) Summary:



Example:


void setgunnerturretontargetrange( int, float ) Summary:



Example:


entity getgunnertargetent( int ) Summary:



Example:


float getgunneranimpitch( int ) Summary:



Example:


float getgunneranimyaw( int ) Summary:



Example:


void setvehweapon( string ) Summary:



Example:


entity fireweapon( entity, vector ) Summary:



Example:


entity firegunnerweapon( int, entity ) Summary:



Example:


void stopfireweapon() Summary:



Example:


int isturretready() Summary:



Example:


void setvehmaxspeed( float ) Summary:



Example:


array getvehoccupants() Summary:



Example:


entity getseatoccupant( int ) Summary:



Example:


int getoccupantseat( entity ) Summary:



Example:


void setseatoccupied( int, int ) Summary:



Example:


string seatgetweapon( int ) Summary:



Example:


vector getseatfiringorigin( int ) Summary:



Example:


vector getseatfiringangles( int ) Summary:



Example:


bool isgunnerfiring( int ) Summary:



Example:


void disablegunnerfiring( int, int ) Summary:



Example:


entity finishvehicledamage( entity, entity, int, string, vector, vector, conststring, int, int, int, conststring, int ) Summary:



Example:


void finishvehicleradiusdamage( entity, entity, float, float, int, string, vector, float, float, vector, int ) Summary:



Example:


bool isvehicleimmunetodamage( int, string, string ) Summary:



Example:


void setdefaultpitch( float ) Summary:



Example:


void cleardefaultpitch() Summary:



Example:


vector getangularvelocity() Summary:



Example:


void setangularvelocity( vector ) Summary:



Example:


void setvehvelocity( vector ) Summary:



Example:


void cancelaimove() Summary:



Example:


void setvehicletype( string ) Summary:



Example:


vector getphysacceleration() Summary:



Example:


void setphysacceleration( vector ) Summary:



Example:


void drawtrajectory() Summary:



Example:


void setrotorspeed( float ) Summary:



Example:


float getmaxspeed( int ) Summary:



Example:


void setmantleena( int ) Summary:



Example:


void setvehicleavoidance( int, float, int ) Summary:



Example:


int getvehicleavoidance() Summary:



Example:


bool vehcansee( entity, int ) Summary:



Example:


bool vehseenrecently( entity, float ) Summary:



Example:


void vehclearenemy() Summary:



Example:


void vehs( entity, float ) Summary:



Example:


void vehclearentitytarget() Summary:



Example:


float getturretheatvalue( int ) Summary:



Example:


bool isvehicleturretoverheating( int ) Summary:



Example:


void setpathtransitiontime( float ) Summary:



Example:


array getvehicleavoidancenodes( float ) Summary:



Example:


void makesentient() Summary:



Example:


Hud Element Methods

Prototype Description
void settext() Summary:



Example:


void clearalltextafterhudelem() Summary:



Example:


void setshader( string, int, int ) Summary:



Example:


void settargetent( entity, entity ) Summary:



Example:


void cleartargetent() Summary:



Example:


void settimer( float ) Summary:



Example:


void settimerup( float ) Summary:



Example:


void settenthstimer( float ) Summary:



Example:


void settenthstimerup( float ) Summary:



Example:


void setclock() Summary:



Example:


void setclockup() Summary:



Example:


void setvalue( float ) Summary:



Example:


void setwaypoint( int, string, int, int ) Summary:



Example:


void fadeovertime( float ) Summary:



Example:


void scaleovertime( float, int, int ) Summary:



Example:


void moveovertime( float ) Summary:



Example:


void reset() Summary:



Example:


void destroy() Summary:



Example:


void setpulsefx( int, int, int ) Summary:



Example:


void setcod7decodefx( int, int, int ) Summary:



Example:


void setredactfx( int, int, int, int ) Summary:



Example:


void settypewriterfx( int, int, int ) Summary:



Example:


int gettextwidth() Summary:



Example:


void setperks( entity, entity ) Summary:



Example:


void setplayernamestring( entity, entity ) Summary:



Example:


void setmapnamestring( string ) Summary:



Example:


void setgametypestring( string ) Summary:



Example:


void setwargamedata() Summary:



Example:


void changefontscaleovertime( float ) Summary:



Example:


Helicopter Methods

Prototype Description
void freehelicopter() Summary:



Example:


void setspeed() Summary:



Example:


float getspeed() Summary:



Example:


float getspeedmph() Summary:



Example:


void resumespeed( float ) Summary:



Example:


void setyawspeed( float, float, float, float ) Summary:



Example:


void setmaxpitchroll( float, float ) Summary:



Example:


void setturningability( float ) Summary:



Example:


void setairresistance( float ) Summary:



Example:


void sethoverparams( float, float, float ) Summary:



Example:


void setneargoalnotifydist( float ) Summary:



Example:


bool setvehgoalpos( vector, int, int, int ) Summary:



Example:


void setgoalyaw( float ) Summary:



Example:


void cleargoalyaw() Summary:



Example:


void settargetyaw( float ) Summary:



Example:


void cleartargetyaw() Summary:



Example:


void setlookatent( entity ) Summary:



Example:


void clearlookatent() Summary:



Example:


void setvehweapon( string ) Summary:



Example:


entity fireweapon( entity, vector ) Summary:



Example:


void stopfireweapon() Summary:



Example:


void setturrettargetvec( vector ) Summary:



Example:


void setturrettargetent( entity, vector ) Summary:



Example:


void clearturrettarget() Summary:



Example:


void setdamagestage( int ) Summary:



Example:


void setheliheightlock( int ) Summary:



Example:


float getheliheightlockheight( vector ) Summary:



Example:


int isinsideheliheightlock() Summary:



Example:


void setheightlockoffset() Summary:



Example:


Actor Methods

Prototype Description
void startcoverarrival() Summary:



Example:


void starttraversearrival() Summary:



Example:


entity melee( vector ) Summary:



Example:


bool reacquirestep( float ) Summary:



Example:


void findreacquirenode() Summary:



Example:


pathnode getreacquirenode() Summary:



Example:


bool usereacquirenode( pathnode ) Summary:



Example:


void findreacquiredirectpath( int ) Summary:



Example:


bool trimpathtoattack() Summary:



Example:


bool reacquiremove() Summary:



Example:


void findreacquireproximatepath( int ) Summary:



Example:


void flagenemyunattackable() Summary:



Example:


void clearpitchorient() Summary:



Example:


void setpitchorient() Summary:



Example:


void setlookatanimnodes( anim, anim, anim ) Summary:



Example:


void setlookat( vector, float ) Summary:



Example:


void setlookatyawlimits( float, float, float ) Summary:



Example:


void stoplookat( float ) Summary:



Example:


bool cansee( entity, int ) Summary:



Example:


bool seerecently( entity, float ) Summary:



Example:


int lastknowntime( entity ) Summary:



Example:


vector lastknownpos( entity ) Summary:



Example:


int maymovetopoint( vector, int ) Summary:



Example:


int maymovefrompointtopoint( vector, vector, int ) Summary:



Example:


int teleport( vector, vector ) Summary:



Example:


float withinapproxpathdist( float ) Summary:



Example:


int ispathdirect() Summary:



Example:


void allowedstances( conststring, conststring, conststring ) Summary:



Example:


int isstanceallowed( conststring ) Summary:



Example:


void traversemode( conststring ) Summary:



Example:


void animmode( conststring, int ) Summary:



Example:


void orientmode( conststring, vector, int ) Summary:



Example:


conststring getorientmode( string ) Summary:



Example:


float getmotionangle() Summary:



Example:


bool shouldfacemotion() Summary:



Example:


void clearmovehistory() Summary:



Example:


vector getmovehistoryaverage() Summary:



Example:


vector getanglestolikelyenemypath() Summary:



Example:


void lerpposition( vector, vector ) Summary:



Example:


void predictoriginandangles() Summary:



Example:


void predictanim() Summary:



Example:


void gethitenttype() Summary:



Example:


float gethityaw() Summary:



Example:


void getgroundenttype() Summary:



Example:


int isdeflected() Summary:



Example:


void animcustom( func, func ) Summary:



Example:


int canattackenemynode() Summary:



Example:


int getpathlength() Summary:



Example:


int calcpathlength( vector ) Summary:



Example:


pathnode getnegotiationstartnode() Summary:



Example:


pathnode getnegotiationendnode() Summary:



Example:


int canseepathgoal() Summary:



Example:


bool checkprone( vector, float, int ) Summary:



Example:


void pushplayer( int ) Summary:



Example:


void setgoalnode( pathnode ) Summary:



Example:


void setgoalpos( vector, vector ) Summary:



Example:


void setgoalentity( entity ) Summary:



Example:


void setgoalvolume( entity ) Summary:



Example:


void setgoalvolumeauto( entity ) Summary:



Example:


entity getgoalvolume() Summary:



Example:


void cleargoalvolume() Summary:



Example:


void setfixednodesafevolume( entity ) Summary:



Example:


entity getfixednodesafevolume() Summary:



Example:


void clearfixednodesafevolume() Summary:



Example:


bool isingoal( vector ) Summary:



Example:


void setruntopos( vector ) Summary:



Example:


void clearruntopos() Summary:



Example:


bool nearnode( pathnode ) Summary:



Example:


bool nearclaimnode() Summary:



Example:


bool nearclaimnodeandangle() Summary:



Example:


bool atdangerousnode() Summary:



Example:


void getenemyinfo( entity ) Summary:



Example:


void clearenemy() Summary:



Example:


void setentitytarget( entity, float ) Summary:



Example:


void clearentitytarget() Summary:



Example:


void setpotentialthreat( float ) Summary:



Example:


void clearpotentialthreat() Summary:



Example:


void getperfectinfo( entity ) Summary:



Example:


void setflashbangimmunity( int ) Summary:



Example:


void setflashbanged( int ) Summary:



Example:


float getflashbangedstrength() Summary:



Example:


int isknownenemyinradius( vector, float ) Summary:



Example:


int isknownenemyinvolume( entity ) Summary:



Example:


void settalktospecies( conststring ) Summary:



Example:


void allowpitchangle( int ) Summary:



Example:


void knockback( int ) Summary:



Example:


float getdeltaturnyaw() Summary:



Example:


entity finishactordamage( entity, entity, int, string, vector, vector, conststring, int, int ) Summary:



Example:


array calclookaheadpos( vector, int ) Summary:



Example:


void setengagementmindist() Summary:



Example:


void setengagementmaxdist() Summary:



Example:


bool isinscriptedstate() Summary:



Example:


entity meleewithoffset( vector ) Summary:



Example:


int forceteleport( vector, vector ) Summary:



Example:


void setentityowner( entity ) Summary:



Example:


void clearentityowner() Summary:



Example:


void setanimstate( conststring, int ) Summary:



Example:


void setaimanimweights( float, float ) Summary:



Example:


void startscriptedanim() Summary:



Example:


void popaistate() Summary:



Example:


int setanimstatefromasd( conststring, conststring, int ) Summary:



Example:


bool hasanimstatefromasd( conststring ) Summary:



Example:


conststring getanimstatefromasd() Summary:



Example:


int getanimsubstatefromasd( conststring, conststring ) Summary:



Example:


int getanimsubstatecountfromasd( conststring ) Summary:



Example:


anim getanimfromasd( conststring, animsindex, animsindex, int ) Summary:



Example:


float getanimlengthfromasd( conststring, int ) Summary:



Example:


bool getanimhasnotetrackfromasd( conststring, int, conststring ) Summary:



Example:


void setfreecameralockonallowed( int ) Summary:



Example:


Builtin Common Methods

Prototype Description
void forceyellowdot( int ) Summary:



Example:


void disableyellowdot( int ) Summary:



Example:


void allowcamerarotation( int ) Summary:



Example:


bool reloadonnunchuk() Summary:



Example:


bool reloadonwiiumote() Summary:



Example:


void attach( string, constlowercasestring, int ) Summary:



Example:


void detach( string, constlowercasestring ) Summary:



Example:


void detachall() Summary:



Example:


int getattachsize() Summary:



Example:


conststring getattachmodelname( int ) Summary:



Example:


conststring getattachtagname( int ) Summary:



Example:


bool getattachignorecollision( int ) Summary:



Example:


void hidepart( constlowercasestring, string ) Summary:



Example:


void runscriptonent() Summary:



Example:


void sendaiscriptvals( string, string ) Summary:



Example:


void showpart( constlowercasestring, string ) Summary:



Example:


void showallparts() Summary:



Example:


void playsoundtoplayer( string ) Summary:



Example:


vector getlightcolor() Summary:



Example:


void setlightcolor( vector ) Summary:



Example:


float getlightintensity() Summary:



Example:


void setlightintensity( float ) Summary:



Example:


float getlightradius() Summary:



Example:


void setlightradius( float ) Summary:



Example:


float getlightfovinner() Summary:



Example:


float getlightfovouter() Summary:



Example:


void setlightfovrange( float, float ) Summary:



Example:


int getlightexponent() Summary:



Example:


void setlightexponent( int ) Summary:



Example:


bool areallmissionsatscore( int ) Summary:



Example:


void isstartingclassdefault() Summary:



Example:


void isstartingclasseraappropriate() Summary:



Example:


int getnumchallengescomplete( string ) Summary:



Example:


bool hascompletedallgamechallenges() Summary:



Example:


void hasallintel() Summary:



Example:


string getdstat() Summary:



Example:


int getdstatarraycount() Summary:



Example:


void setdstat( string, string, int, int, float, float ) Summary:



Example:


void adddstat() Summary:



Example:


void addweaponstat( string, int, int ) Summary:



Example:


void addbonuscardstat( int, string, int ) Summary:



Example:


void getsessstat() Summary:



Example:


void getsessstatarraycount() Summary:



Example:


void setsessstat() Summary:



Example:


void addsessstat() Summary:



Example:


void addplayerstat( string ) Summary:



Example:


void addplayerstatwithgametype() Summary:



Example:


void addgametypestat() Summary:



Example:


void trackweaponfirenative( string, int, int, int ) Summary:



Example:


void updatestatratio( string, string, string ) Summary:



Example:


int addrankxp( string, int ) Summary:



Example:


void addrankxpvalue( string ) Summary:



Example:


bool hasseasonpass() Summary:



Example:


void setempjammed( int ) Summary:



Example:


bool isempjammed() Summary:



Example:


void setspawnerteam( team ) Summary:



Example:


void luinotifyevent() Summary:



Example:


void launch( vector, vector ) Summary:



Example:


void setmovingplatformenabled( int ) Summary:



Example:


bool ismovingplatform() Summary:



Example:


void setviewmodelrenderflag( int ) Summary:



Example:


void setdrawinfrared( int ) Summary:



Example:


void setgpr() Summary:



Example:


void gamehistorystartmatch( int ) Summary:



Example:


void gamehistoryfinishmatch( int, int, int, int, int, float ) Summary:



Example:


void unlink() Summary:



Example:


void linkto() Summary:



Example:


void linktoblendtotag() Summary:



Example:


void enablelinkto() Summary:



Example:


void linktoupdateoffset( vector, vector ) Summary:



Example:


void playerlinkto() Summary:



Example:


void playerlinktoblend( entity, constlowercasestring, float, float, float, float, float, float ) Summary:



Example:


void playerlinktodelta() Summary:



Example:


void playerlinkweaponviewtodelta() Summary:



Example:


void playerlinktoabsolute( entity, constlowercasestring ) Summary:



Example:


void playercamlinkto( entity, string ) Summary:



Example:


void playercamunlink() Summary:



Example:


void lerpviewangleclamp( float, float, float, float, float, float, float ) Summary:



Example:


void setviewangleresistance() Summary:



Example:


void playerlinkedoffsetenable() Summary:



Example:


void playerlinkedoffsetdisable() Summary:



Example:


void playerlinkedsetusebaseangleforviewclamp( int ) Summary:



Example:


void dontinterpolate() Summary:



Example:


entity magicgrenadetype( string, vector, vector, float ) Summary:



Example:


void startfadingblur( float, float ) Summary:



Example:


vector localtoworldcoords( vector ) Summary:



Example:


vector worldtolocalcoords( vector ) Summary:



Example:


void setturretspinning( int ) Summary:



Example:


void attachshieldmodel() Summary:



Example:


void detachshieldmodel() Summary:



Example:


void setscriptmoverflag( int ) Summary:



Example:


void refreshshieldattachment() Summary:



Example:


void setcharacterindex( int ) Summary:



Example:


void useplayerfootsteptable() Summary:



Example:


void setvisionsetforplayer( string, float ) Summary:



Example:


void useservervisionset( int ) Summary:



Example:


void setinfraredvision( int ) Summary:



Example:


string getcontrollertype() Summary:



Example:


void setactorweapon( string, int ) Summary:



Example:


void resetfov() Summary:



Example:


Builtin Methods

Prototype Description
void setstowedweapon( string ) Summary:



Example:


string getstowedweapon() Summary:



Example:


void clearstowedweapon() Summary:



Example:


int getammocount( string ) Summary:



Example:


void setvisibletoplayer( entity ) Summary:



Example:


void setinvisibletoplayer( entity, int ) Summary:



Example:


void setvisibletoall() Summary:



Example:


void setinvisibletoall() Summary:



Example:


void setvisibletoteam( team ) Summary:



Example:


void setvisibletoallexceptteam( team ) Summary:



Example:


void setforcenocull() Summary:



Example:


void removeforcenocull() Summary:



Example:


int islinkedto( entity ) Summary:



Example:


void allowtacticalinsertion( int ) Summary:



Example:


void allowbottargetting( int ) Summary:



Example:


entity getlinkedent() Summary:



Example:


vector getorigin() Summary:



Example:


vector getangles() Summary:



Example:


vector getmins() Summary:



Example:


vector getmaxs() Summary:



Example:


vector getabsmins() Summary:



Example:


vector getabsmaxs() Summary:



Example:


vector getpointinbounds( float, float, float ) Summary:



Example:


vector geteye() Summary:



Example:


vector geteyeapprox() Summary:



Example:


entity useby( entity ) Summary:



Example:


void setstablemissile( int ) Summary:



Example:


int istouching( entity, vector ) Summary:



Example:


int istouchingswept( entity, float, float ) Summary:



Example:


int istouchingvolume( vector, vector, vector ) Summary:



Example:


void playsound( string ) Summary:



Example:


void playsoundwithnotify( string, conststring ) Summary:



Example:


void playsoundontag( string, string ) Summary:



Example:


void playsoundasmaster( string ) Summary:



Example:


void playsoundtoteam( string, entity ) Summary:



Example:


void playbattlechattertoteam( string, string, team, entity ) Summary:



Example:


void playsoundtoplayer( string ) Summary:



Example:


void playloopsound( string, float ) Summary:



Example:


void stoploopsound( float ) Summary:



Example:


void stopsounds() Summary:



Example:


void playrumbleonentity() Summary:



Example:


void playrumblelooponentity() Summary:



Example:


void stoprumble( string ) Summary:



Example:


void delete() Summary:



Example:


void setmodel( string ) Summary:



Example:


void setzombieshrink( int ) Summary:



Example:


void setenemymodel( string ) Summary:



Example:


void dodamage( float, vector, entity, entity ) Summary:



Example:


float getnormalhealth() Summary:



Example:


void setnormalhealth( float ) Summary:



Example:


void setmaxhealth( int ) Summary:



Example:


void show() Summary:



Example:


void hide() Summary:



Example:


void ghost() Summary:



Example:


void ghostindemo() Summary:



Example:


void showindemo() Summary:



Example:


void laseron() Summary:



Example:


void laseroff() Summary:



Example:


void showtoplayer( entity ) Summary:



Example:


int setcontents( int ) Summary:



Example:


void startfiring() Summary:



Example:


void stopfiring() Summary:



Example:


void shootturret() Summary:



Example:


void stopshootturret() Summary:



Example:


void setmode( conststring ) Summary:



Example:


entity getturretowner() Summary:



Example:


void settargetentity( entity ) Summary:



Example:


array getturretarclimits() Summary:



Example:


void setplayerspread( float ) Summary:



Example:


void setaispread( float ) Summary:



Example:


void setconvergencetime( float ) Summary:



Example:


void setsuppressiontime( float ) Summary:



Example:


void cleartargetentity() Summary:



Example:


void setturretteam( team ) Summary:



Example:


void maketurretusable() Summary:



Example:


void maketurretunusable() Summary:



Example:


void setturretaccuracy() Summary:



Example:


void setturretignoregoals( int ) Summary:



Example:


entity getturrettarget() Summary:



Example:


void disconnectpaths() Summary:



Example:


void connectpaths() Summary:



Example:


conststring getstance() Summary:



Example:


void setstance( conststring ) Summary:



Example:


void setcursorhint( string, entity ) Summary:



Example:


void setrevivehintstring( string, team ) Summary:



Example:


void sethintstringforperk( string, string ) Summary:



Example:


void sethintstring( string ) Summary:



Example:


void setfovforkillcam( int ) Summary:



Example:


void sethintlowpriority( int ) Summary:



Example:


void usetriggerrequirelookat() Summary:



Example:


void triggerignoreteam() Summary:



Example:


void shellshock( string, float, int ) Summary:



Example:


vector getweaponforwarddir() Summary:



Example:


vector getweaponmuzzlepoint() Summary:



Example:


vector gettagorigin( constlowercasestring ) Summary:



Example:


vector gettagangles( constlowercasestring ) Summary:



Example:


void getentnum() Summary:



Example:


void stopshellshock() Summary:



Example:


void setdepthoffield( float, float, float, float, float, float ) Summary:



Example:


void setburn( float ) Summary:



Example:


void setelectrified( float ) Summary:



Example:


void spawnnapalmgroundflame( vector, string, vector, int ) Summary:



Example:


void needsrevive( int ) Summary:



Example:


bool isinsecondchance() Summary:



Example:


float depthinwater() Summary:



Example:


void shootup( float ) Summary:



Example:


int depthofplayerinwater() Summary:



Example:


void useweaponhidetags( string ) Summary:



Example:


void useweaponmodel( string, string, int ) Summary:



Example:


void starttanning() Summary:



Example:


void stopburning() Summary:



Example:


void setwaterdrops( int ) Summary:



Example:


void restoredefaultdroppitch() Summary:



Example:


bool isfiringturret() Summary:



Example:


bool isturretlockedon() Summary:



Example:


void setviewmodeldepthoffield( float, float ) Summary:



Example:


void viewkick( float, vector ) Summary:



Example:


vector localtoworldcoords( vector ) Summary:



Example:


void setrightarc( float ) Summary:



Example:


void setleftarc( float ) Summary:



Example:


void settoparc( float ) Summary:



Example:


void setbottomarc( float ) Summary:



Example:


void radiusdamage() Summary:



Example:


void detonate( entity ) Summary:



Example:


void damageconetrace() Summary:



Example:


void sightconetrace() Summary:



Example:


int heliturretsighttrace( vector, entity, int ) Summary:



Example:


int heliturretdogtrace( vector, entity, int ) Summary:



Example:


int playersighttrace( vector, int, int ) Summary:



Example:


void visionsetlerpratio( float ) Summary:



Example:


float docowardswayanims() Summary:



Example:


void startpoisoning() Summary:



Example:


void stoppoisoning() Summary:



Example:


void startbinocs() Summary:



Example:


void stopbinocs() Summary:



Example:


bool isflared() Summary:



Example:


bool ispoisoned() Summary:



Example:


void setcameraspikeactive( int ) Summary:



Example:


int isinsideheightlock() Summary:



Example:


int ismissileinsideheightlock() Summary:



Example:


int isonground( int ) Summary:



Example:


entity getgroundent() Summary:



Example:


entity getmoverent() Summary:



Example:


int issprinting() Summary:



Example:


void setanim() Summary:



Example:


void useanimtree( animtree ) Summary:



Example:


void animscripted() Summary:



Example:


void animscriptedskiprestart() Summary:



Example:


void animrelative() Summary:



Example:


void stopanimscripted() Summary:



Example:


void clearanim( anim, float ) Summary:



Example:


void setentityanimrate( float ) Summary:



Example:


float getentityanimrate() Summary:



Example:


vector getcentroid() Summary:



Example:


bool ismartyrdomgrenade() Summary:



Example:


int getentitynumber() Summary:



Example:


int getentitytype() Summary:



Example:


void enablegrenadetouchdamage() Summary:



Example:


void disablegrenadetouchdamage() Summary:



Example:


void enableaimassist() Summary:



Example:


void disableaimassist() Summary:



Example:


void placespawnpoint() Summary:



Example:


void setspawnclientflag( string ) Summary:



Example:


void directionalhitindicator( int, int ) Summary:



Example:


void sendkillstreakdamageevent( int ) Summary:



Example:


void setplayergravity( int ) Summary:



Example:


void clearplayergravity() Summary:



Example:


void sendfaceevent( conststring ) Summary:



Example:


void setteamfortrigger( team ) Summary:



Example:


void setexcludeteamfortrigger( team ) Summary:



Example:


void setperkfortrigger( string ) Summary:



Example:


void setignoreentfortrigger( entity ) Summary:



Example:


void clientclaimtrigger( entity ) Summary:



Example:


void clientreleasetrigger( entity ) Summary:



Example:


void releaseclaimedtrigger() Summary:



Example:


int isitemlocked( int ) Summary:



Example:


int isitempurchased( int ) Summary:



Example:


void uploadleaderboards() Summary:



Example:


void setnemesisxuid( string ) Summary:



Example:


int getloadoutitem() Summary:



Example:


int isbonuscardactive( int, int ) Summary:



Example:


string getloadoutitemref() Summary:



Example:


string getloadoutweapon( int, string ) Summary:



Example:


array getloadoutperks( int ) Summary:



Example:


int getloadoutallocation( int ) Summary:



Example:


void setmovespeedscale( float ) Summary:



Example:


float getmovespeedscale() Summary:



Example:


void logstring() Summary:



Example:


void missile_settarget( entity, vector ) Summary:



Example:


void missile_dronesetvisible( int ) Summary:



Example:


bool isonladder() Summary:



Example:


bool ismantling() Summary:



Example:


bool isonslide() Summary:



Example:


void startdoorbreach() Summary:



Example:


void stopdoorbreach() Summary:



Example:


void startragdoll( int ) Summary:



Example:


int isragdoll() Summary:



Example:


void launchragdoll( vector, constlowercasestring ) Summary:



Example:


void launchvehicle( vector, vector ) Summary:



Example:


void setblur( float, float ) Summary:



Example:


void resetmissiledetonationtime( float ) Summary:



Example:


void giveachievement() Summary:



Example:


void setzombiename( string ) Summary:



Example:


void setentgravitytrajectory( int ) Summary:



Example:


void setvehicleteam( team ) Summary:



Example:


void setteam( team ) Summary:



Example:


team getteam() Summary:



Example:


void setowner( entity ) Summary:



Example:


void setmissileowner( entity ) Summary:



Example:


void setentityweapon( string ) Summary:



Example:


void setturretowner( entity ) Summary:



Example:


void setturrettype( string ) Summary:



Example:


anim getcorpseanim( animsindex ) Summary:



Example:


void itemweaponsetammo( int, int, int ) Summary:



Example:


void setturretcarried( int ) Summary:



Example:


void setturretminimapvisible( int ) Summary:



Example:


void setmissilecoasting( int ) Summary:



Example:


void setweapon( string ) Summary:



Example:


void gib( conststring, object ) Summary:



Example:


void setphysparams( float, float, float ) Summary:



Example:


void setplayercollision( int ) Summary:



Example:


void reportuser( string ) Summary:



Example:


void setplayercurrentobjective() Summary:



Example:


void setplayercurrentstreak( int ) Summary:



Example:


vector getvelocity() Summary:



Example:


entity spawnactor( int, conststring ) Summary:



Example:


vector getshootatpos() Summary:



Example:


void predictspawnpoint( vector, vector ) Summary:



Example:


void setdefaultdroppitch( float ) Summary:



Example:


void setscanningpitch( float ) Summary:



Example:


entity launchbomb( string, vector, vector ) Summary:



Example:


entity magicgrenade( string, vector, vector ) Summary:



Example:


void makegrenadedud() Summary:



Example:


void setclientflag( int ) Summary:



Example:


int getclientflag( int ) Summary:



Example:


void clearclientflag( int ) Summary:



Example:


void setscriptmoverflag( int ) Summary:



Example:


void setmovingplatformenabled() Summary:



Example:


void fakefire( entity, vector, string, int ) Summary:



Example:


void makeusable( team ) Summary:



Example:


void makeunusable() Summary:



Example:


vector predictgrenade() Summary:



Example:


void setdangerous( team, int ) Summary:



Example:


bool isdangerous( team ) Summary:



Example:


void getindexforactivecontract() Summary:



Example:


void getactivecontractprogress() Summary:



Example:


void incrementactivecontractprogress() Summary:



Example:


void incrementactivecontracttime() Summary:



Example:


void isactivecontractcomplete() Summary:



Example:


void hasactivecontractexpired() Summary:



Example:


void getactivecontracttimepassed() Summary:



Example:


void resetactivecontractprogress() Summary:



Example:


void getpregameclass() Summary:



Example:


void getpregameteam() Summary:



Example:


void setpregameclass() Summary:



Example:


void setpregameteam() Summary:



Example:


void recordleaguepreloser() Summary:



Example:


void luinotifyeventtospectators() Summary:



Example:


bool istestclient() Summary:



Example:


void setworldfogactivebank( int ) Summary:



Example:


bool iszbarrier() Summary:



Example:


int getnumzbarrierpieces() Summary:



Example:


conststring getzbarrierpiecestate( int ) Summary:



Example:


void setzbarrierpiecestate( int, constlowercasestring, float ) Summary:



Example:


bool iszbarrieropen() Summary:



Example:


bool iszbarrierclosed() Summary:



Example:


void hidezbarrierpiece( int ) Summary:



Example:


void showzbarrierpiece( int ) Summary:



Example:


void zbarrierpieceusedefaultmodel( int ) Summary:



Example:


void zbarrierpieceusealternatemodel( int ) Summary:



Example:


void zbarrierpieceuseupgradedmodel( int ) Summary:



Example:


void zbarrierpieceuseboxriselogic( int ) Summary:



Example:


int getupgradedpiecenumlives( int ) Summary:



Example:


array getzbarrierpieceindicesinstate( constlowercasestring ) Summary:



Example:


float getzbarrierpieceanimlengthforstate( int, constlowercasestring, float ) Summary:



Example:


conststring getzbarrierpieceanimstate( int ) Summary:



Example:


conststring getzbarrierpieceanimsubstate( int ) Summary:



Example:


int zbarriersupportszombietaunts() Summary:



Example:


int zbarriersupportszombiereachthroughattacks() Summary:



Example:


conststring getzbarriertauntanimstate() Summary:



Example:


conststring getzbarrierreachthroughattackanimstate() Summary:



Example:


int getzbarriernumattackslots() Summary:



Example:


float getzbarrierattackslothorzoffset() Summary:



Example:


void setzbarriercolmodel( string ) Summary:



Example:


string getweaponoptic( string ) Summary:



Example:


void setaltusetrigger() Summary:



Example:


bool isaltusetrigger() Summary:



Example: