This is an old revision of the document!
⇐ Index
CreateEgg(<-pos <-initData) ->egg
Creates an egg at the specifid position. The init params control it's content, it initial velocity, and its behavior.
The egg's UID is pushed to the stack after this call. If the egg is not created (because of the egg limit), a value of -1 is returned.
The possible values in initTable are:
Table("payload" 100 "velocity" V3(RandFloat 0.5 - 0.1 * 0.5 RandFloat 0.5 - 0.1 *)) ->initData CreateEgg(V3(100 20 100) <-initData) ->egg
⇐ Index