newPlayer | |||||||
Type | message | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Associations | player | ||||||
Summary | Sent to a new player right after it's created. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: it, player, templatePlayer Property: script Command: copy, clone, paste Glossary: object, property, variable, message path, message, tool, trap Control Structure: pass | ||||||
Description | Handle the newPlayer message if you want to create additional objects, switch tools, or do other tasks when a new player is created. Normally, the newPlayer message is handled at a higher level of the message path, since the newly-created player does not yet have a script unless the templatePlayer contains one. The actual creation is not triggered by the newPlayer message, so trapping the message and not allowing it to pass does not prevent the player from being created. | ||||||
Tags | objects |