Talk:Counter-Strike: Source/Scripting/VScript Examples

From Valve Developer Community
< Talk:Counter-Strike: Source
Revision as of 10:21, 2 April 2025 by SirYodaJedi (talk | contribs) (→‎Possible use case: emulating trigger_bomb_reset: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Possible use case: emulating trigger_bomb_reset

Of course you can just have a trigger_teleport filtered to weapon_c4 teleport the bomb back to T spawn, but I'm wondering if it might be possible to use vscript to teleport it to an alive T player instead (which would help with pacing). According to Gazyi on Discord, you can attach a think function to the bomb after OnPostSpawn, but I'm not familiar enough with vscript to figure out how to put that into practice.
SirYodaJedi (talk) 10:21, 2 April 2025 (PDT)