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

Function aSetLevelTimer

scripts/DallasFuncs.cpp:2470–2480  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2468$$END
2469*/
2470void 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

Callers 15

CallEventMethod · 0.85
cTimeGlassBreakFunction · 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
cTimedEnableForcefieldFunction · 0.85
cTimedRoomSetWindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected