Garry's Mod
Control Map Entities - Entity:fire() E2 Function (Wiremod / ent_fire)
Εμφάνιση 1-6 από 6 καταχωρίσεις
Ενημέρωση: 20 Απρ 2017 στις 12:00

Ενημέρωση: 20 Απρ 2017 στις 11:25

Ενημέρωση: 16 Μαϊ 2016 στις 8:58

Version 2.0

  • New function: entityMapID( number id )
    Returns entity that has given MapCreationID. Unlike entity(), it will always be the same on same map, no matter how much you clean up or restart it.
  • New function: Entity:getMapID()
    Returns an entity's map creation ID.
  • Entity:fire() and Entity:setKeyValue() now return 1 on success and 0 on failure.
  • Overall code improvements.

Ενημέρωση: 31 Αυγ 2014 στις 7:41

Version 1.2

- Added new function Entity:setKeyValue that allows you to set a keyvalue / spawnflags for an entity. Useful for developers, please check the Valve Developer Wiki for lists of possible values.

Ενημέρωση: 15 Αυγ 2014 στις 6:16

Version 1.1

- Added support for Prop Protection addons. The function now calls the hook "CanProperty" to check if a player is allowed to manipulate an entity.

- Removed IsOwner() check, because it's unreliable and it's the job of a prop protection addon to restrict things. If you don't have one, please get one if you want to restrict the usage of this addon.

- Added convar "wire_expression2_entfire_norestriction". If set to 1, it allows all players to manipulate all entities in multiplayer.

- Toned down error message: They now print to chat and no longer break the E2.

Ενημέρωση: 13 Αυγ 2014 στις 2:06

Version 1.0

Initial Release