I need a function to teleport objects to points on other objects. Sort of like objects_attach, but without the attaching. I've tested changing the coordinates of a device machine manually and it seems the biped will stay on, I want to use this in the DRC-II by "teleporting" an invisible device machine around with the ship, but there are no functions to do that, I can only teleport to a cutscene_flag.
e: Technically, I'm looking for an object_teleport with the format of objects_attach:
object_teleport object string object string
"Teleports the second object to the first object, both strings may be left blank"
Last edited by klange; June 17th, 2009 at 09:53 PM.
Doesn't work. I do that all the time, but it won't work with the device_machine/biped combo. I need to quite literally, and in one game tick, change the position coordinates of the device_machine, as well as (ideally) its rotation to that of a point on another object in world space. So far, experiments show that this could yield walkable vehicles.
e: And yes, I'd probably replace all of my attach/detach's with this, 'cause it would take less game ticks and therefore yield better syncing if I did it with a vehicle in the back... Which means less lag.
Last edited by klange; June 17th, 2009 at 09:35 PM.
I'm not sure if it'll work. I think attachments work pretty much the same objects_attach does in effect, so it doesn't yield the right results. If it does work, yes, but I still want this function because it's "super easy" to implement.
e: Though, yes, that would be preferable. It would also be really nice if an attached proximity door still detected a biped presence... then I could just add more doors as attachments with no extra scripting...
Last edited by klange; June 18th, 2009 at 02:42 PM.
There are currently 2 users browsing this thread. (0 members and 2 guests)
Bookmarks