======Move Character====== ---- Moves a [[character]] to the specified [[tile]] at their assigned movement speed. If a walkable path is not open the [[character]] will remain at their current position. ====Signature:==== move_character(character, tile, pause) ^Argument^Description^Type^Required^ |character|[[Character]] (player or NPC) that will be moved.|[[Entity]]|Yes| |tile|ID or [[coordinate]] of the destination tile or a reference to the destination [[tile]] itself.|[[String]], [[Coordinate]], or [[Entity]]|Yes| |pause|Whether or not script should be paused until the [[character]] has reached their destination. Defaults to true.|[[Boolean]]|No| If you are moving the [[player character]], [[set_player_movement_locked|Lock/Unlock Player Movement]] must be called first to prevent the player from interfering with the scripted movement. You can also use the more convenient [[Move Player]] function. ====Example:==== move_character(entity["sarah"], "bridge01"); //Results:// The [[character]] with an ID of "sarah" walks from her current location to the bridge [[tile]] with an ID of "bridge01". Use the **Move Character** function to move the [[player character]] or [[npc|NPCs]] around the [[map]] during scripted sequences or cutscenes. ---- ====Editor Node:==== {{:wiki:move_character_node.png?nolink|}} ====Visual Demo:==== {{:wiki:move_character_demo.gif?nolink|}} ~~NOTOC~~