Code: Select all
.def("playback_temp_entity",
&IVEngineServer::PlaybackTempEntity,
"Queue a temp entity for transmission",
args("filter", "delay", "sender", "st", "class_id")
)
one of the args seems to be a sendtable, but i still have no idea how to usethem.i know that functions pass these around in the network modules, but if anybody knows how to create one, i would appreciate to hear it, as im trying to test the function.
here my current approach guesses:
Code: Select all
playback_temp_entity(class IVEngineServer {lvalue}, class IRecipientFilter {lvalue} filter, float delay, void const * sender, class SendTable const * st, int class_id)
"filter" = RecipientFilter()
"delay" = 0
"class_id" = TempEntity('xy').server_class.class_index
"sender" = PlayerEntity(0).pointer # pointer to world?
"st" = ?? # class SendTable const * st // its a string??
also looked into tempentity class, but can only find "template", which looks like something else, a simple property storage..
if anybody can help how to create the sendtable arg, id appreciate to know, would like to test this function.