hello. this is the (FINALLY) final part of my Big Cellar -_-
i want that if i DROP a stone to the explosive, that it will EXPLODE.
but what happens?! only the effects are happening?! like some flames... and then the explosive is gone?! (nothing happened).
And if i just hold the stone in my hand and touch it with the explosive WITHOUT DROPPING IT it iwll explode... Immediately....
Can someone help me?
I'm Really... I worked more then 1 month for Cellar
It's Annoying to work for 1 map...
but it is a beautifull map... spending some time to make a map... (not fast)
But i'm really frustrated with this cellar. i hope i can finish this cellar Soon..
My Scriptings.
AddEntityCollideCallback("BamRock", "Bomb", "ExplodingRocks", true, 1);
AddUseItemCallback("", "ExplosiveTest", "PlaceBomb", "PlaceExplosive", true);
Name of my rock is : BamRock and name of explosive is Bomb.
ExplosiveTest is my *for now* bucket name. and PlaceBomb is the area to place the Explosive.
void ExplodingRocks(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("BlockingRocks", 0);
PlaySoundAtEntity("epoxyignite", "12_epoxy_blow", "BlockingRocks", 0, false);
StartScreenShake(0.08, 2.5f, 0, 1.0f);
GivePlayerDamage(25, "BloodSplat", true, false);
PlayMusic("12_puzzle_cavein.ogg", false, 1, 0.0f, 10, true);
SetEntityActive("Bomb", false);
}
I have This.
(and this)
void PlaceExplosive(string &in asItem, string &in asEntity)
{
RemoveItem("FullBucket");
SetEntityActive("Bomb", true);
SetEntityActive("PlaceBomb", false);
}
but that works. but i want that the flames comes first, and then the exploding.
Can someone help me