Editing Talk:Simple Companion Tutorial
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 32: | Line 32: | ||
== Umm, ok, but what about this? == | == Umm, ok, but what about this? == | ||
Instead of making a companion, i'm planning on making a pet, but how do you do that? | Instead of making a companion, i'm planning on making a pet, but how do you do that? | ||
:Reasonable question. I imagine that it's not much different from this, but you use a Creature instead of an NPC. | :Reasonable question. I imagine that it's not much different from this, but you use a Creature instead of an NPC. | ||
Line 39: | Line 39: | ||
:My guess would be that if you want to be able to talk to the pet, you create an invisible dummy NPC (using [[SetActorAlpha]] 0), which you position in the middle of the pet (using [[MoveTo]] and [[SetPos]]), and when the player Activates the pet (an OnActivate block in the pet's script), you have the player talk to the NPC. Because the NPC is invisible and in the middle of the pet, the player will look at the pet, so the pet will look like it's talking. Then you just have to modify the dialogue on the NPC to affect the pet. | :My guess would be that if you want to be able to talk to the pet, you create an invisible dummy NPC (using [[SetActorAlpha]] 0), which you position in the middle of the pet (using [[MoveTo]] and [[SetPos]]), and when the player Activates the pet (an OnActivate block in the pet's script), you have the player talk to the NPC. Because the NPC is invisible and in the middle of the pet, the player will look at the pet, so the pet will look like it's talking. Then you just have to modify the dialogue on the NPC to affect the pet. | ||
:These are just some ideas, I've never actually tried to make a companion or a pet. If you're looking for more information, you may want to try the [http://www.bethsoft.com/bgsforums/index.php?showforum=24 Forums]. If you find anything, it would be awesome if you reported back here! | :These are just some ideas, I've never actually tried to make a companion or a pet. If you're looking for more information, you may want to try the [http://www.bethsoft.com/bgsforums/index.php?showforum=24 Forums]. If you find anything, it would be awesome if you reported back here! |