CastObjects Objects Creation 1.0 OC int id id Type of objects. int number Number of objects. int level Velocity of the objects. int x X casting position. In local calls offset to the calling object. int y Y casting position. In local calls offset to the calling object. int angle Angle into which to cast the objects. int angle_variance Maximum deviation from that angle. If not given objects will be cast into all directions. Casts number objects at the specified position with speed level. For local calls the created objects will have the same owner as the calling object. The objects that were created are returned in an array. var num=GetVertexNum()-1; CastObjects(MagicSpark,1,20,GetVertex(num, 0)-GetX(), GetVertex(num, 1)-GetY()); Creates a spark at the last vertex of a line. With multiple calls this will create the same effect as a lightning strike. CreateObject Günther2002-02 Newton2009-07 Marky2015-07