Garry's Mod

Garry's Mod

Primitive
agentgollem 2022 年 8 月 20 日 下午 12:40
Support with Wiremod
Hello, I recently discoverd that they were support with wiremod and so Expression 2, i then saw the lib in E2 extension, activatated it, and then saw only 2 function in the E2 helper, I also don't know how to use them and what to do I mean i know what is an entity but i don't know what do you mean by "key" has the second argument in the function "PrimitiveEdit". So yea it would be nice a little guide or tutorial on how to use Primitive with E2.



Edit : I just discoverd the code of the extension in github and again I can't find any help on how to use the support with wiremod.
最后由 agentgollem 编辑于; 2022 年 8 月 20 日 下午 12:42
< >
正在显示第 1 - 3 条,共 3 条留言
shadowscion  [开发者] 2022 年 8 月 20 日 下午 6:39 
it's not perfect, but every entity is gonna have specific variable names, that's why the function is the way it is

there should be another function that will output a list of all of them
Table = primitiveGetVars( E )
then you would do something like this with a shape entity for example
primitiveEdit( E, "PrimTYPE", "torus" )
最后由 shadowscion 编辑于; 2022 年 8 月 20 日 下午 6:41
agentgollem 2022 年 8 月 21 日 上午 2:13 
Oh I see the string is from the table. I didn't thought of printing it thanks !!
Enrico α ω 2023 年 11 月 18 日 上午 5:14 
Hi, now when loading a game it shows the following error:

[Wiremod] Warning: Use of variadic parameter with ExtPP is not recommended and deprecated. Instead use ...<name> (which passes a table) or the `args` variable (at line 80) @entities/gmod_wire_expression2/core/custom/primitive.lua

1. parseParameters - lua/entities/gmod_wire_expression2/core/extpp.lua:83
2. Pass2 - lua/entities/gmod_wire_expression2/core/extpp.lua:194
3. unknown - lua/entities/gmod_wire_expression2/core/extloader.lua:91
4. pcall - [C]:-1
5. e2_include_finalize - lua/entities/gmod_wire_expression2/core/extloader.lua:110
6. unknown - lua/entities/gmod_wire_expression2/core/extloader.lua:183
7. include - [C]:-1
8. unknown - lua/entities/gmod_wire_expression2/core/init.lua:284
9. include - [C]:-1
10. unknown - lua/entities/gmod_wire_expression2/shared.lua:24
11. include - [C]:-1
12. unknown - lua/entities/gmod_wire_expression2/init.lua:3
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50