object.place_between_me_and
Spawn a new object between this object and another.
This function returns object.
Arguments
- other
The other object to use as a basis.
- type
A type of object that can exist in the game world.
- radius
The created object will have a cylinder shape, and this controls the radius. A value of 10 represents one Forge unit. If the radius is zero or negative, then the game will use 10 instead. Radii are clamped to the range [0, 200].
Example
global.object[0] = global.object[1].place_between_me_and(global.object[2], skull, 0)
Notes
Unlike object.place_at_me, this function appears to spawn objects exactly in place, provided they aren't solid or obstructed. It also automatically gives the object a shape — specifically, a cylinder, whose top and bottom lengths are set to reach from one basis object to the other basis object.
If the same object is used as both basis objects — that is, if the object that you call this function on is the same object that you pass as an argument — then the created object will be rotated. Its rotation will be equivalent to -90 pitch, 0 yaw, and 180 roll as shown in Forge. Another way to describe this is that the created object's local up-vector will match the world forward vector (i.e. the positive world X-axis).