Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Throw an exploding object?
ClayPigeon Offline
Member

Posts: 214
Threads: 13
Joined: Mar 2012
Reputation: 8
#3
RE: Throw an exploding object?

You can play with areas and sounds:

void OnStart()
{
AddEntityCollideCallback("SCRIPT_AREA", "ITEM_TO_EXPLODE", "function_explode", true, 1);
}

void function_explode(string &in asChild, string &in asParent, int alState)
{
PlaySoundAtEntity("", "explosion_rock_large.snt", "Player", 0, false);
SetPropHealth("ITEM_TO_EXPLODE", 0.0f);
StartScreenShake(1.0f, 2.0f, 1.0f, 2.0f);
}
(This post was last modified: 03-17-2012, 09:23 PM by ClayPigeon.)
03-17-2012, 09:22 PM
Find


Messages In This Thread
Throw an exploding object? - by Damascus - 03-17-2012, 08:56 PM
RE: Throw an exploding object? - by SilentStriker - 03-17-2012, 09:21 PM
RE: Throw an exploding object? - by ClayPigeon - 03-17-2012, 09:22 PM
RE: Throw an exploding object? - by Damascus - 03-17-2012, 09:36 PM
RE: Throw an exploding object? - by ClayPigeon - 03-17-2012, 09:39 PM
RE: Throw an exploding object? - by Damascus - 03-17-2012, 10:05 PM
RE: Throw an exploding object? - by SilentStriker - 03-17-2012, 11:14 PM
RE: Throw an exploding object? - by Stepper321 - 03-17-2012, 11:13 PM
RE: Throw an exploding object? - by Apjjm - 03-18-2012, 12:51 AM
RE: Throw an exploding object? - by Damascus - 03-18-2012, 06:31 AM
RE: Throw an exploding object? - by Apjjm - 03-18-2012, 11:47 AM
RE: Throw an exploding object? - by Equil - 03-18-2012, 07:19 AM
RE: Throw an exploding object? - by Acies - 03-18-2012, 07:07 PM
RE: Throw an exploding object? - by Damascus - 03-18-2012, 07:14 PM
RE: Throw an exploding object? - by Apjjm - 03-18-2012, 09:50 PM
RE: Throw an exploding object? - by Damascus - 03-18-2012, 10:29 PM
RE: Throw an exploding object? - by Apjjm - 03-19-2012, 12:35 AM
RE: Throw an exploding object? - by Damascus - 03-19-2012, 01:09 AM
RE: Throw an exploding object? - by Apjjm - 03-19-2012, 01:38 AM
RE: Throw an exploding object? - by Damascus - 03-19-2012, 01:42 AM
RE: Throw an exploding object? - by Apjjm - 03-19-2012, 01:43 AM
RE: Throw an exploding object? - by Damascus - 03-19-2012, 01:59 AM
RE: Throw an exploding object? - by Apjjm - 03-19-2012, 02:07 AM
RE: Throw an exploding object? - by Damascus - 03-19-2012, 02:15 AM
RE: Throw an exploding object? - by Apjjm - 03-19-2012, 02:18 AM



Users browsing this thread: 1 Guest(s)