Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>obj_copy()</b> c_demo http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
OBJ_COPY()                                                          C_DEMO
   Makes a copy of a specified object from any layer.

   Syntax
         nOk = OBJ_COPY(nIndex [,nXOffset,nYOffset])

   Arguments
         nIndex      Object number.
         OPTIONAL PARAMETERS
         nXOffset    X world coordinate to offset a new object copy.
         nXoffset    Y world coordinate to offset a new object copy.

   Returns
         nOk         Function completed successfully.
                           0 - no
                           1 - yes

   Description
         OBJ_COPY() copies a specified object from the current layer to the
         same layer.

         If no nXOffset or nYOffset is passed, the copied object will be
         placed under mouse control.

   Examples

         The following code would copy the object number which the mouse
         selected:

         OBJ_COPY(KP_ITEM_NO())

See Also: CHECK_OLAP() OBJ_MOVE() OBJ_MOVPNT() OBJ_SNAP() OBJ_SNAPNT()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson