Commodus Posted June 23, 2002 Share Posted June 23, 2002 I've been seeing a lot of functions that start with "trap" and then go on with something. What does this indicate? Thanks, Commodus Link to comment Share on other sites More sharing options...
Arkule Posted June 24, 2002 Share Posted June 24, 2002 Not sure exactly, but all that i have seen are always defined as a syscall, which means we can't see the code because its hardcoded (i think). trap_EntitiesInBox or whatever that function is called, takes a min and a max (to define a box), a list of ints (for entities numbers to be stored in), and a maximum number of enitites to find, and then returns the number it found. Even though you can't see the actuall code of these functions, you can see the parameters they take by going to its definition. That can be helpful in finding out what it might do. Link to comment Share on other sites More sharing options...
NickR Posted June 24, 2002 Share Posted June 24, 2002 Basically they are calls to functions in the JKII engine. Link to comment Share on other sites More sharing options...
Aetherfunz Posted June 27, 2002 Share Posted June 27, 2002 AFAIK those trap-functions are high-priority functions that have to be called & finished within a certain time. Peace & Respect -- Aetherfukz Link to comment Share on other sites More sharing options...
Commodus Posted June 27, 2002 Author Share Posted June 27, 2002 Ahhh, ic. Thanks for the help! =D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.