Template:Scripting/Squirrel/Functions/Game Functions: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
* [[Scripting/Squirrel/Functions/CreateExplosion|CreateExplosion]] | * [[Scripting/Squirrel/Functions/CreateExplosion|CreateExplosion]]( world, type, pos, playerCaused, onGround ) | ||
* [[Scripting/Squirrel/Functions/PlaySound|PlaySound]] | * [[Scripting/Squirrel/Functions/PlaySound|PlaySound]]( world, sound, pos ) | ||
* [[Scripting/Squirrel/Functions/CreateRadioStream|CreateRadioStream]] | * [[Scripting/Squirrel/Functions/CreateRadioStream|CreateRadioStream]]( radioName, radioURL, CanSelect ) / ( streamID, radioName, radioURL, CanSelect ) | ||
* [[Scripting/Squirrel/Functions/DestroyRadioStream|DestroyRadioStream]] | * [[Scripting/Squirrel/Functions/DestroyRadioStream|DestroyRadioStream]](radioID) | ||
* [[Scripting/Squirrel/Functions/SetWorldBounds|SetWorldBounds]] | * [[Scripting/Squirrel/Functions/SetWorldBounds|SetWorldBounds]]( maxX, minX, maxY, minY ) | ||
* [[Scripting/Squirrel/Functions/GetWorldBounds|GetWorldBounds]] | * [[Scripting/Squirrel/Functions/GetWorldBounds|GetWorldBounds]]() | ||
* [[Scripting/Squirrel/Functions/GetWeaponName|GetWeaponName]] | * [[Scripting/Squirrel/Functions/GetWeaponName|GetWeaponName]]( id ) | ||
* [[Scripting/Squirrel/Functions/GetDistrictName|GetDistrictName]] | * [[Scripting/Squirrel/Functions/GetDistrictName|GetDistrictName]]( x, y ) | ||
* [[Scripting/Squirrel/Functions/GetSkinName|GetSkinName]] | * [[Scripting/Squirrel/Functions/GetSkinName|GetSkinName]]( id ) | ||
* [[Scripting/Squirrel/Functions/GetWeaponID|GetWeaponID]] | * [[Scripting/Squirrel/Functions/GetWeaponID|GetWeaponID]](name) | ||
* [[Scripting/Squirrel/Functions/InPoly|InPoly]] | * [[Scripting/Squirrel/Functions/InPoly|InPoly]](x,y,x1,y1,x2,y2,x3,y3,x4,y4) | ||
* [[Scripting/Squirrel/Functions/DistanceFromPoint|DistanceFromPoint]] | * [[Scripting/Squirrel/Functions/DistanceFromPoint|DistanceFromPoint]]( x1, y1, x2, y2 ) | ||
* [[Scripting/Squirrel/Functions/GetVehicleModelFromName|GetVehicleModelFromName]] | * [[Scripting/Squirrel/Functions/GetVehicleModelFromName|GetVehicleModelFromName]](name) | ||
* [[Scripting/Squirrel/Functions/GetVehicleNameFromModel|GetVehicleNameFromModel]] | * [[Scripting/Squirrel/Functions/GetVehicleNameFromModel|GetVehicleNameFromModel]](ID) | ||
* [[Scripting/Squirrel/Functions/BindKey|BindKey]] | * [[Scripting/Squirrel/Functions/BindKey|BindKey]](press, key, args1, args2) | ||
* [[Scripting/Squirrel/Functions/UnbindKey|UnbindKey]] | * [[Scripting/Squirrel/Functions/UnbindKey|UnbindKey]] | ||
* [[Scripting/Squirrel/Functions/UnbindAll|UnbindAll]] | * [[Scripting/Squirrel/Functions/UnbindAll|UnbindAll]] | ||
* [[Scripting/Squirrel/Functions/CreateMarker|CreateMarker]] | * [[Scripting/Squirrel/Functions/CreateMarker|CreateMarker]]( world, pos, scale, color, SpriteId ) | ||
* [[Scripting/Squirrel/Functions/DestroyMarker|DestroyMarker]] | * [[Scripting/Squirrel/Functions/DestroyMarker|DestroyMarker]](Marker) |
Revision as of 18:17, 5 March 2016
- CreateExplosion( world, type, pos, playerCaused, onGround )
- PlaySound( world, sound, pos )
- CreateRadioStream( radioName, radioURL, CanSelect ) / ( streamID, radioName, radioURL, CanSelect )
- DestroyRadioStream(radioID)
- SetWorldBounds( maxX, minX, maxY, minY )
- GetWorldBounds()
- GetWeaponName( id )
- GetDistrictName( x, y )
- GetSkinName( id )
- GetWeaponID(name)
- InPoly(x,y,x1,y1,x2,y2,x3,y3,x4,y4)
- DistanceFromPoint( x1, y1, x2, y2 )
- CreateMarker( world, pos, scale, color, SpriteId )
- DestroyMarker(Marker)