Garry's Mod

Garry's Mod

[E2] SpriteCore
 This topic has been pinned, so it's probably important
N!kO  [developer] 3 Dec, 2016 @ 6:47am
Documentation
SpriteCore Console Commands:
Command
Default
Description
wire_spritecore_max
100
Max number of sprites allowed.
wire_spritecore_maxscale
16
Limits the scale of the spawned sprites.


SpriteCore Functions:
Function
Return
Description
spriteList()
Prints on chat the list of avaliable sprites.
spriteRList()
Prints on chat the list of avaliable render modes.
spriteSpawn(N)
E
Creates a Sprite and assigns it to the given index.
spriteSpawn(N,S)
E
Requires Sprite Texture Path (S)
spriteSpawn(N,S,V)
E
Requires Position (V)
spriteSpawn(N,S,V,V)
E
Requires Color (V)
spriteSpawn(N,S,V,V,N)
E
Requires Alpha (N)
spriteSpawn(N,S,V,V,N,N)
E
Requires Scale (N)
spriteSpawn(N,S,V,V,N,N,E)
E
Requires Parent Entity (E)
spriteSpawn(N,S,V,V,N,N,E,N)
E
Requires Render Mode (N)
spriteSpawn(N,S,V,V,N,N,E,N,N)
E
Requires Framerate (N)
spriteEnable(N,N)
Enables/Disables the sprite at the given index.
spriteSetPos(N,V)
Sets the position of the sprite at the given index.
spriteSetColor(N,V)
Sets the color of the sprite at the given index.
spriteSetAlpha(N,N)
Sets the opacity of the sprite at the given index. (0-255)
spriteSetScale(N,N)
Sets the scale of the sprite at the given index.
spriteSetParent(N,E)
Sets the parent of the sprite at the given index.
spriteSetRendermode(N,N)
Sets the rendermode of the sprite at the given index. See spriteRList()
spriteSetFramerate(N,N)
Sets the framerate of the sprite at the given index.
Last edited by N!kO; 3 Dec, 2016 @ 6:54am
< >
Showing 1-2 of 2 comments
Sanders 6 Aug, 2022 @ 11:13am 
there a way i can take a scale of a sprite and make it longer? or do i need more sprites?
MegaXT 9 May, 2023 @ 11:38am 
Originally posted by SANDERS:
there a way i can take a scale of a sprite and make it longer? or do i need more sprites?
Same. Need this function!
< >
Showing 1-2 of 2 comments
Per page: 1530 50