Garry's Mod

Garry's Mod

QCardWars - Card Game in GMod!
2022 年 1 月 22 日 下午 9:44
How do you "Set Models" for ability?
Based on the description, it says: "UNIT_ID::mdl"

I didn't get the instructions for that.

Examples I did:

!SELF::models/props_junk/watermelon01.mdl
!SELF::mdl=models/props_junk/watermelon01.mdl
!SELF::mdl.models/props_junk/watermelon01.mdl

Anyway here's the error:
[QCardWars - Card Game in GMod!] lua/entities/ent_qcardwars.lua:3170: attempt to index local 'mdl' (a nil value)
1. spawnCSEnt - lua/entities/ent_qcardwars.lua:3170
2. func - lua/entities/ent_qcardwars.lua:3217
3. unknown - lua/includes/extensions/net.lua:33

Might as well just be what I did wrong.
< >
正在显示第 1 - 2 条,共 2 条留言
MerekiDor  [开发者] 2022 年 2 月 3 日 上午 2:06 
Sorry for late response - Steam doesn't like to send me notifications about new discussions.
UNIT_ID::mdl is how you get current model.
To set a model, add an action called Set Model, type in unit ID and then paste the path to model as second argument.
最后由 MerekiDor 编辑于; 2022 年 2 月 3 日 上午 2:06
2022 年 2 月 3 日 上午 9:37 
Thx
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50