trigger_gravity
Last edited 2 years ago2022-09-06 16:55:58 UTC
- Wiki
- View Page
-
You are viewing an older revision of this wiki page. The current revision may be more detailed and up-to-date.
Click here to see the current revision of this page.
This article was converted from a previous version of TWHL and may need to be reviewed
- The formatting may be incorrect due to differences in the WikiCode processing engine, it needs to be revised and reformatted
- Some information may be out of date
- After the article is re-formatted and updated, remove this notice and the Review Required category.
- Some older articles are no longer useful, or they duplicate information from other pages. In this case, delete the page after merging any relevant information into other pages. Contact an admin to delete a page.
This entity sets the effect of gravity for the player passing through it, acts as a multiplier of the sv_gravity command.
Attributes
- Target (target) - When an entity is activated, it triggers the entity with the name specified by Target.
- Name (targetname) - Property used to identify entities.
- Master (master) - The entity is NOT toggleable even when using a master.
- Delay before trigger (delay) - Usually the time in seconds before an entity should trigger its target (after being triggered itself). Under other SmartEdit names, delay might also be the time to wait before performing some other action.
- Kill target (killtarget)
- Target Path (netname)
- Sound style (sounds)
- Message (message)
- Gravity (gravity) - Any value (1 being normal gravity, less is low gravity, more is high gravity)
Flags
- Monsters (1) With this set on, monster entities will be able to activate this entity.
- No Clients (2) With this flag set on, the entity will not be affected by the player.
- Pushables (4) With this flag set on, the entity will be activated by pushable objects.
Notes
- Level of gravity stays set after being put into effect - use two brushes, one with the new gravity, one with the old, to make sure the player returns to normal gravity in situations where that is necessary.
Related vault examples
Gravity TestGravity Lift Example
4 Comments
You must log in to post a comment.
You can login or register a new account.
source:
Valve's hlsdk repository halflife/engine/progdefs.h line 110
Valve's hlsdk repository halflife/dlls/triggers.cpp line 2072
apparently the only useful attribute is Gravity