player.set_biped

If this function is passed a valid biped, it forces the context player to abandon control of their current biped and take control of the passed-in biped. If this function is not passed a valid biped, then it does nothing. Either way, the player's old biped is not deleted from the map; it simply becomes an inactive NPC.

Arguments

biped

The biped to force the player into.

Example

--
-- Force players into Monitors.
--
for each player do
   if current_player.biped != no_object and not current_player.biped.is_of_type(monitor) then
      global.object[0] = current_player.biped
      global.object[1] = current_player.biped.place_at_me(monitor, none, none, 0, 0, 0, none)
      current_player.set_biped(global.object[1])
      global.object[0].delete()
   end
end

Notes

See also