# CastObjects

Objects
Creation
5.1 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.
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ünther
2002-02
Newton
2009-07