Examples

//Create 4 different BloodImpact effects, slightly offset from each other. (+/- 12)for(inti=0;i<4;i++){// Get the center of the object in world-space coordinatesVectorvecSpot=WorldSpaceCenter();//Modify it a bitvecSpot.x+=random->RandomFloat(-12,12);vecSpot.y+=random->RandomFloat(-12,12);vecSpot.z+=random->RandomFloat(-4,16);vecDir.x=random->RandomFloat(-1,1);vecDir.y=random->RandomFloat(-1,1);vecDir.z=0;VectorNormalize(vecDir);UTIL_BloodImpact(vecSpot,vecDir,BloodColor(),1);}