Garry's Mod

Garry's Mod

[E2] SpriteCore
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
N!kO  [udvikler] 3. dec. 2016 kl. 6:47
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.
Sidst redigeret af N!kO; 3. dec. 2016 kl. 6:54
< >
Viser 1-2 af 2 kommentarer
Sanders 6. aug. 2022 kl. 11:13 
there a way i can take a scale of a sprite and make it longer? or do i need more sprites?
MegaXT 9. maj 2023 kl. 11:38 
Oprindeligt skrevet af 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!
< >
Viser 1-2 af 2 kommentarer
Per side: 1530 50