This article's documentation is for the "GoldSrc" engine. Click here for more information.

Trigger gravity (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎top: clean up, replaced: {{EntityTabs → {{tabs)
Line 16: Line 16:
{{KV|Delay|intn=delay|string|Delay before trigger.}}
{{KV|Delay|intn=delay|string|Delay before trigger.}}
{{KV|Message|intn=message|string|Message (set sound too!).}}
{{KV|Message|intn=message|string|Message (set sound too!).}}
{{KV|Gravity|intn=gravity|int|Gravity multiplier. For example, a value between 0 and 1 is low gravity.}}
{{KV|Gravity|intn=gravity|float|Gravity multiplier. For example, a value between 0 and 1 is low gravity.}}


== Flags ==
== Flags ==

Revision as of 19:28, 3 April 2024

trigger_gravity is an e2 available in all GoldSrc GoldSrc games.

Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{gldsrc}} template. This can most likely be fixed by setting the value of the {{{engine}}} parameter to GoldSrc.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

Entity description

This entity sets the effect of gravity for any player that touches it.

Keyvalues

Target (target) <targetname>
The targetname of an entity this entity will trigger when activated.
Name (targetname) <string>
The targetname that other entities refer to this entity by.
Kill target (target_destination) <integer>
Kill Target.
Target Path (target_destination) <integer>
Target Path.
Master (master) <string>
Master.
Sound Style (sounds) <choices>
  • 0 : "No Sound"
Delay (delay) <string>
Delay before trigger.
Message (message) <string>
Message (set sound too!).
Gravity (gravity) <float>
Gravity multiplier. For example, a value between 0 and 1 is low gravity.

Flags

  • 1 : "Monsters"
  • 2 : "No Clients"
  • 4 : "Pushables"