Garry's Mod

Garry's Mod

Primitive
agentgollem 20 Aug, 2022 @ 12:40pm
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.
Last edited by agentgollem; 20 Aug, 2022 @ 12:42pm
< >
Showing 1-3 of 3 comments
shadowscion  [developer] 20 Aug, 2022 @ 6:39pm 
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" )
Last edited by shadowscion; 20 Aug, 2022 @ 6:41pm
agentgollem 21 Aug, 2022 @ 2:13am 
Oh I see the string is from the table. I didn't thought of printing it thanks !!
Enrico α ω 18 Nov, 2023 @ 5:14am 
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
< >
Showing 1-3 of 3 comments
Per page: 1530 50