Garry's Mod

Garry's Mod

81 个评价
Extra E2 Functions (EEF)
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 建筑, 快乐
文件大小
发表于
更新日期
3.376 KB
2015 年 3 月 13 日 上午 5:38
2017 年 4 月 15 日 上午 6:35
35 项改动说明 ( 查看 )

订阅以下载
Extra E2 Functions (EEF)

在 EXTRA MENTAL 的 2 个合集中
IBAJ Build Collection
91 件物品
Bright Spark Build
92 件物品
描述
EEF converts most of the useful LUA functions into E2 functions.

Main Functions
E:getGroundEntity() - Gets the entity that a player/NPC is standing on.
E:isMapMade() - Is the entity created by the map?
E:timeCreated() - Gets the time that the entity was created in relation server start.
E:hasBoneManipulations() - Can the entities bones be manipulated?
E:isRagdoll() - Is the entity a ragdoll?
E:mapCreationID() - Gets the map creation ID of an entity, this ID wont change unless the map is edited. Returns -1 if the entity is not created by the map.
E:removeDecals() - Removes all decals from the entity. (Crowbars are no longer a nuisance!)
E:isPersistent() - Is the entity persistent?
E:waterLevel() - How deep is the entity in the water? 0 - Not in water. | 1 - Touching in water. | 2 - Half in water. | 3 - Fully under water.
E:canUseFlashlight() - Can the player use their flashlight?
E:getHands() - Gets the players hands.
E:canColideWithTeam() - Can the player collide with team mates?
E:getRagdoll() - Gets the players death ragdoll.
E:getWeapons() - Gets a list of weapons this player has.
E:isBot() - Is the player a bot?
E:isConnected() - Is the player (entity) connected to the server?.
E:isAuth() - Is the player authenticated with steam network?
E:isHostPlayer() - Is this player hosting the local server? (Not the same as server owner.)
E:steamID64() - Gets the 64 bit version of the players steam ID
E:stress() - Gets the physical stress being applied on the entity.
E:getAnimID() - Gets the current animation ID of the entity.
E:getAnimList() - Gets the entities list of animations as strings.
E:held() - Returns the last entity the player attempted to physgun.
E:inGod() - Is the player in god mode?
E:setUnbreakable(N) - Set if the entity can be broken by physics.
E:keepUpright(N, N) - Apply keep upright to the entity. Args: (BoneID, Strength)

killOwner() - Kills the owner of the E2.
freezeOwner(N) - Freezes the owner preventing control such as WASD and mouse movement, removing the initial E2 that froze you will automatically unfreeze you if you get stuck.

Event Functions
runOnPlyConnect(N) - Enable or disable this E2 execution on player connect/spawn/disconnect.
plyConnectClk() -Returns 1 if the E2s execution was caused by a player connecting.
plyConnectName() - Returns the name of the player that just connected to the server. (It cannot return the player entity as it hasnt been created yet)
plySpawnClk() - Returns 1 if the E2s execution was caused by a player spawning.
plySpawn() - Returns the player that spawned.
plyDisconnectClk() - Returns 1 if the E2s execution was caused by a player disconnecting.
plyDisconnect() - Returns the player that disconnected.

Important Information
All bugs, crashes and errors should be reported here so I can resolve them.

If the functions arent working they may be disabled. You will need to enter a command in your console.
Latest version: wire_expression2_extension_enable EFF
Older versions: wire_expression2_extension_enable e2extras
You may need to restart your client/server for it to take affect.
29 条留言
Revenant Moon sups.gg 2024 年 9 月 10 日 上午 10:36 
it isn't, the problem is you are referencing a variable that has yet to be set.
EXTRA MENTAL  [作者] 2021 年 12 月 25 日 下午 5:12 
Rooki 2021 年 12 月 24 日 上午 4:31 
it got updated so that wrong hook.adds() isnt silently failed

Is that an empty hook.Add()??? or check gmod wiki
EXTRA MENTAL  [作者] 2021 年 12 月 23 日 下午 2:41 
that is an error involving my code yes but it says its errored on a commented line, the code around it hasnt chaned in 6 years so idk what its problem is
Rooki 2021 年 12 月 20 日 上午 11:02 
Is it possible that this error is yours? [Wiremod] bad argument #3 to 'Add' (function expected, got nil)
1. Add - lua/includes/modules/hook.lua:31
2. unknown - entities/gmod_wire_expression2/core/custom/e2extras.lua:6
3. pcall - [C]:-1
4. unknown - lua/entities/gmod_wire_expression2/core/extloader.lua:88
5. pcall - [C]:-1
6. e2_include_finalize - lua/entities/gmod_wire_expression2/core/extloader.lua:101
7. unknown - lua/entities/gmod_wire_expression2/core/extloader.lua:172
8. include - [C]:-1
9. unknown - lua/entities/gmod_wire_expression2/core/init.lua:195
10. include - [C]:-1
11. unknown - lua/entities/gmod_wire_expression2/shared.lua:26
12. include - [C]:-1
13. unknown - lua/entities/gmod_wire_expression2/init.lua:3

On Startup after the new update
Sanders 2019 年 6 月 1 日 上午 11:28 
ok ill get it when the e2 fails again and paste it here lol sorry i was tired when i posted lol
EXTRA MENTAL  [作者] 2019 年 5 月 31 日 下午 11:14 
need more info than that
Sanders 2019 年 5 月 28 日 下午 12:25 
E:getWeapons() breaks an e2 if the entity is a player / npc it kills the e2..........
Harry V1.15.5 2018 年 11 月 8 日 上午 5:17 
For other people?
EXTRA MENTAL  [作者] 2018 年 11 月 8 日 上午 12:54 
why did you ask me to do it when you can do it yourself?