AttachInput
From Spheriki
Makes a person respond to player input.
Contents |
[edit]
Usage
AttachInput(person_entity);
- person_entity String. The name of a person either on the map, or persistent between maps.
[edit]
Examples
CreatePerson("person_name", "my_spriteset.rss", false);
AttachInput("person_name");
MapEngine("field.rmp", 60);
The above code will create a person called person_name which lasts between maps. Then it will allow the player to control that person when the map engine runs, and finally the map engine itself is started.
[edit]
Notes
- This function is equivalent to AttachPlayerInput(person_entity, 0);.
- To stop the person from responding to player input, say, while a text box is showing, use the DetachInput() function.
- Although the input is attached to the player, the camera will not. To attach the camera to the player, see AttachCamera().
[edit]

