Scripting question -1 reply

Please wait...

mike elf

:)

50 XP

12th January 2005

0 Uploads

83 Posts

0 Threads

#1 11 years ago

Quite an easy one i expect - how can i get a fun_breakable to be destoryed by scripting? It needs to have the destroyed effect and not just disappear if possible thanks I've just worked this out but the trapdoor just seems to disappear which no effect or sound. remove ( "trapdoor" );




lassev

Degenerate scripter

50 XP

21st June 2004

0 Uploads

847 Posts

0 Threads

#2 11 years ago

Don't use remove. It's a command to surgically just remove any entity / NPC from the level. To have a func_breakable break like they break when destroyed in game, you just need to give the entity an ordinary targetname in Radiant and then use("targetname") in the script. Have a look at the flags and keys in Radiant to see if they offer nice extra touches to serve your desires further.

Depending on the thing you are destroying, it might be necessary to also place some fx_runners there, to be used at the same time or slightly later to make it all look better.




mike elf

:)

50 XP

12th January 2005

0 Uploads

83 Posts

0 Threads

#3 11 years ago

Thanks 'use' worked perfectly! this cinematic is coming along nicely now