$$ACTION Timer Generate level timer event in [f:Time] seconds using with ID [e:TimerID] aSetLevelTimer Generate level timer event Sets a level timer to go off in the specified amount of time Parameters: Time: how long in seconds until notification TimerID: the ID for this timer $$END */
| 2468 | $$END |
| 2469 | */ |
| 2470 | void aSetLevelTimer(float time, int id) { |
| 2471 | tOSIRISTIMER timer_info; |
| 2472 | |
| 2473 | timer_info.flags = OTF_LEVEL; |
| 2474 | timer_info.repeat_count = OTF_LEVEL; |
| 2475 | timer_info.object_handle_detonator = OBJECT_HANDLE_NONE; |
| 2476 | timer_info.timer_interval = time; |
| 2477 | timer_info.id = id; |
| 2478 | |
| 2479 | Scrpt_CreateTimer(&timer_info); |
| 2480 | } |
| 2481 | |
| 2482 | /* |
| 2483 | $$ACTION |
no outgoing calls
no test coverage detected