Talk:Counter-Strike: Source/Scripting/VScript Examples
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.
Mentioning this here because I figure it's a generic enough desired feature to be worth adding to this page if someone figures it out.
— SirYodaJedi (talk) 10:21, 2 April 2025 (PDT)