MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / aSetObjectTimer

Function aSetObjectTimer

scripts/DallasFuncs.cpp:2444–2455  ·  view source on GitHub ↗

$$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 */

Source from the content-addressed store, hash-verified

2442$$END
2443*/
2444void 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

Callers 15

CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected