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
Teleporting items & Vaporizing items
ZodiaC Offline
Member

Posts: 120
Threads: 8
Joined: Oct 2012
Reputation: 2
#8
Smile  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! Big Grin

[Image: 2H1Mc.jpg]
10-21-2012, 06:37 PM
Find


Messages In This Thread
Teleporting items & Vaporizing items - by ZodiaC - 10-21-2012, 01:46 AM
RE: Teleporting items & Vaporizing items - by ZodiaC - 10-21-2012, 06:37 PM



Users browsing this thread: 1 Guest(s)