$$ACTION Timer Generate object [o:Object] timer event in [f:Time] seconds with ID [e:TimerID] aSetObjectTimer Generate object timer event Sets an object timer to go off in the specified amount of time Parameters: Object: the object to receive the timer notification Time: how long in seconds until notification TimerID: the ID for this timer $$END */
| 2442 | $$END |
| 2443 | */ |
| 2444 | void aSetObjectTimer(int objref, float time, int id) { |
| 2445 | tOSIRISTIMER timer_info; |
| 2446 | |
| 2447 | timer_info.flags = 0; |
| 2448 | timer_info.repeat_count = 0; |
| 2449 | timer_info.object_handle = objref; |
| 2450 | timer_info.object_handle_detonator = OBJECT_HANDLE_NONE; |
| 2451 | timer_info.timer_interval = time; |
| 2452 | timer_info.id = id; |
| 2453 | |
| 2454 | Scrpt_CreateTimer(&timer_info); |
| 2455 | } |
| 2456 | |
| 2457 | /* |
| 2458 | $$ACTION |
no outgoing calls
no test coverage detected