$$ACTION Custom Emit [f:Number=20.0] sparks from [o:Object] aEmitSparks Make object spark Makes an object emit sparks Parameters: Number: the number of sparks to create Object: the object to make sparks come out of $$END */
| 738 | $$END |
| 739 | */ |
| 740 | void aEmitSparks(float num_sparks, int objhandle) { |
| 741 | int room; |
| 742 | vector pos; |
| 743 | |
| 744 | if (!qObjExists(objhandle)) |
| 745 | return; |
| 746 | |
| 747 | Obj_Value(objhandle, VF_GET, OBJV_V_POS, &pos); |
| 748 | Obj_Value(objhandle, VF_GET, OBJV_I_ROOMNUM, &room); |
| 749 | Game_CreateRandomSparks((int)num_sparks, &pos, room); |
| 750 | } |
| 751 | |
| 752 | #define N_REGIONS 2 |
| 753 | const char *RegionList[N_REGIONS] = {"LeftLabR", "RightLabR"}; |
no test coverage detected