Someone asked this just and I told them how to do it i am not sure if it is in nikkydudes guide and i couldnt find it in a search so here it is incase anyone else wants to do this and is stuck.
Ok for this to work you need 3 componants:
*A trigger zone.
*The barrel you want to explode.
*Another small Fpsc object to use as a detonator.
*Now place your trigger zone, and then change its main script to appearifactivate (attached)
*Set the if used propertie to the name of the small object you are using as a detonator
apply the settings
*Now place your barrel to be exploded and your detonator object next to each other.
*Right click on your detonator to access its properties:
*attach detonator as the start/appear script (attached)
*make sure its set to dynamic
*set spawn at start to "NO"
*set its strength to "1"
*set its physics force damage to "9999"
apply the settings
*Right click on your barrel to access its properties:
*attach barreldestroy script as the the destroy script (attached)
*make sure its set to dynamic
*Set immobile to "yes"
*make sure explodable is "yes"
set its strength to "1"
apply the settings
*Place your barrel where you want it
*place your detonator inside the barrel out of sight
NOTE: The extra scripts are so if the player destroys the barrel with a gun before reaching the trigger the detonator object is destoryed also.
Your set run your game and watch the fun
Any comments? go for it
Thanks
Adam