Toy.SetParent
Sets the parent of a toy (So that the toy follows it).
Syntax
Toy.SetParent *toy_reference parent_type @player_parent? *toy_parent?
Arguments
| Name | Required | Type | Description |
|---|---|---|---|
toy reference | Yes | a reference to AdminToy object. | |
parent type | Yes | One of the following options: > playerCamera > playerBody > toy | Options: playerCamera, playerBody, toy |
player parent | No | Player value e.g. @player, with EXACTLY 1 player. | Default: none (if type is toy) |
toy parent | No | a reference to AdminToy object. | Default: none (if type is player) |
Possible errors
- No player has been given when needed.
- No Admin Toy has been given when needed.
On a running server
Use serhelp Toy.SetParent to inspect the reference generated by your installed SER version.