Description :
This instruction creates an event and repeats it regularly a predefined number of times.
Parameters :
-
Name of the procedure managing the event.
-
Delay between two consecutive calls to the procedure, expressed in seconds.
-
EVENT_LOOP
EVENT_ONE_SHOT
NbsShoot
-
This parameter is facultative. If you create many events, it may be easier to call an index rather than a ObjectID. To do so, place each ObjectID in a table and call the procedure using an index to the table.
Return Handle :
Notes :
When creating the procedure, you should always organize its three parameters in the following order: Event ObjectID, Shoot, Index.
There is no need to use the instruction event.free after the last time the event occurs. The event will be automatically removed from computer memory.
Examples :
|