Skip to content

Commit e073223

Browse files
revolucasXottab-DUTY
authored andcommitted
* fix teleport_object
- removed jump_to_level; unnecessary
1 parent 546c456 commit e073223

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/xrGame/alife_simulator_script.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,12 @@ bool dont_has_info(const CALifeSimulator* self, const ALife::_OBJECT_ID& id, LPC
306306
return (!has_info(self, id, info_id));
307307
}
308308

309+
//Alundaio: teleport object
310+
void teleport_object(CALifeSimulator* alife, ALife::_OBJECT_ID id, GameGraph::_GRAPH_ID game_vertex_id, u32 level_vertex_id, const Fvector& position)
311+
{
312+
alife->teleport_object(id, game_vertex_id, level_vertex_id, position);
313+
}
314+
309315
// void disable_info_portion (const CALifeSimulator *self, const ALife::_OBJECT_ID &id)
310316
//{
311317
// THROW (self);
@@ -353,8 +359,7 @@ SCRIPT_EXPORT(CALifeSimulator, (), {
353359
.def("switch_distance", &CALifeSimulator::switch_distance)
354360
.def("switch_distance", &CALifeSimulator::set_switch_distance)
355361
//Alundaio: extend alife simulator exports
356-
.def("jump_to_level", (void (CALifeSimulator::*) (LPCSTR))(&CALifeSimulator::jump_to_level))
357-
.def("teleport_object", (void (CALifeSimulator::*) (ALife::_OBJECT_ID, GameGraph::_GRAPH_ID, u32, Fvector))(&CALifeSimulator::teleport_object))
362+
.def("teleport_object", &teleport_object)
358363
//Alundaio: END
359364

360365
,

0 commit comments

Comments
 (0)