|
|
(3 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| + | <gallery mode="packed-hover"> |
| + | File:NPC_creation.jpg|Position NPC in scene|link=https://wiki.sine.space/images/9/91/NPC_creation.jpg |
| + | File:NPC_3.jpg|Grab outfit ID from sine.space|link=https://wiki.sine.space/images/a/ab/NPC_3.jpg |
| + | File:NPC_2.jpg|Add interactive functions and submit|link=https://wiki.sine.space/images/a/aa/NPC_2.jpg |
| + | </gallery> |
| + | |
| Non Player Charaters and other bots can be deployed easily baked into regions or as spawnable items placed like furniture. | | Non Player Charaters and other bots can be deployed easily baked into regions or as spawnable items placed like furniture. |
| | | |
| ==Statue component== | | ==Statue component== |
− | | + | See [[Components/Statue|Statue Component]] |
− | The Statue component allows you to dress your NPC using any clothing or accessory you can own inworld; both your own virtual goods and any item you buy or are given by another creator.
| + | |
− | | + | |
− | Apply the script to an empty capule collider in your scene, or use the NPC template prefab in your Space Editor Pack.
| + | |
− | | + | |
− | | + | |
− | [[File:Statue_script.jpg]] | + | |
− | | + | |
− | | + | |
− | '''Name'''
| + | |
− | | + | |
− | NPCs are easily distinguished from real avatars inworld because they do not have hover text showing their names over their heads. However, you can still give your NPC a name in this field, that will appear in quest dialogue steps.
| + | |
− | | + | |
− | '''Player Outfit ID'''
| + | |
− | | + | |
− | Log in to http://sine.space/ and click the "Outfit" menu button. Create and save the outfit you want for your NPC. You will see when you save your named outfit that a unique number is added at the end.
| + | |
− | | + | |
− | Enter just this number in the Player Outfit ID field.
| + | |
− | | + | |
− | '''Rendering settings'''
| + | |
− | | + | |
− | If you want to apply a material on top of the NPC you can add it here.
| + | |
− | | + | |
− | You can make your NPCs look like holograms or stone statues etc.
| + | |
− | | + | |
− | If you want store mannequins that show of a specific item, add the store ID of that item to the "Skip Material Change ID" field.
| + | |
− | | + | |
− | This will allow you, for instance, to create a silver mannueqin with just the sunglasses you are selling retaining their original materials.
| + | |
− | | + | |
− | You can get the item ID from the virtual good component attached to it; the ID will appear as soon as the item is submitted.
| + | |
− | | + | |
− | '''Scale'''
| + | |
− | | + | |
− | You can enlarge your NPC to the status of a giant towering over the scene or shrink it to a sprite.
| + | |
− | | + | |
− | '''Disable shadows / Culling distance'''
| + | |
− | | + | |
− | You can use the NPC system to deploy crowd scenes; where disabling shadows and optimising draw distance on each NPC will improve performance.
| + | |
− | | + | |
− | '''Custom animation'''
| + | |
− | | + | |
− | By default your NPC will use the standard Space idle animations.
| + | |
− | | + | |
− | You can override this here by adding your own animations. See here for details on importing and rigging animations for Space avatars; [https://wiki.sine.space/index.php?title=Gestures_-_Single_Person_Animation#Import_FBX]
| + | |
− | | + | |
− | | + | |
− | '''Scale'''
| + | |
Non Player Charaters and other bots can be deployed easily baked into regions or as spawnable items placed like furniture.