ZodiaC
Member
Posts: 120
Threads: 8
Joined: Oct 2012
Reputation:
2
|
RE: Teleporting items & Vaporizing items
(10-21-2012, 05:23 PM)beecake Wrote: void OnStart()
{
for(int p=1;p<100;p++) AddEntityCollideCallback("hammer_"+p, "AREA", "VAPORIZING", false, 1);
for(int p=1;p<100;p++) AddEntityCollideCallback("box_"+p, "AREA", "VAPORIZING", false, 1);
for(int p=1;p<100;p++) AddEntityCollideCallback("longbox_"+p, "AREA", "VAPORIZING", false, 1);
}
void VAPORIZING(string &in asParent, string &in asChild, int alState)
{
CreateParticleSystemAtEntity("", "ps_dust_impact.ps", asParent, false);
SetPropActiveAndFade(asParent, false, 1);
PlayGuiSound("ui_fire_damage", 4);
} It works perfectly!I didn't know that the "For" command can be used as in the C language...Maybe i could use it for my 1) problem too...Anyway thank you for help!You helped me both of you!
|
|
10-21-2012, 06:37 PM |
|