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
Unknown. A value of 10 is equal to 1 Forge unit. Testing has not revealed any obvious effect. A value of 0 seems safe.
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.
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).