Garry's Mod

Garry's Mod

[E2] SpriteCore
 此主題已被置頂,因此它可能很重要
N!kO  [開發人員] 2016 年 12 月 3 日 上午 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.
最後修改者:N!kO; 2016 年 12 月 3 日 上午 6:54
< >
目前顯示第 1-2 則留言,共 2
Sanders 2022 年 8 月 6 日 上午 11:13 
there a way i can take a scale of a sprite and make it longer? or do i need more sprites?
MegaXT 2023 年 5 月 9 日 上午 11:38 
引用自 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!
< >
目前顯示第 1-2 則留言,共 2
每頁顯示: 1530 50