Difference between revisions of "Talking Creatures?"

537 bytes added ,  15:18, 8 June 2006
Update
imported>TheImperialDragon
(nope.)
imported>TheImperialDragon
(Update)
Line 227: Line 227:
[[Omzy]] To put the npc inside the goblin why not do it all OnActivate? Just use the (PlaceAtMe actorName) function since the calling actor is the goblin itself. Use GetPos x, y, and z. Then use the actorName.MoveTo x-5, y, z (5 units behind goblin) for fine tuning. If all of this is done OnActivate it would not only save the memory of having the npc and goblin traveling together during every frame but also keep the goblin from being stuck at an xmarker. Just Kill, Disable, and DeleteFullActorCopy (as [[User:MaXiMiUS|MaXiMiUS]] pointed out) after the event is finished. To get the goblin to face the PC get the PC's degree rotation values and set the goblin up 180 degrees the opposite of the player heading right before the conversation with the npc is initiated. This should make them face one another.
[[Omzy]] To put the npc inside the goblin why not do it all OnActivate? Just use the (PlaceAtMe actorName) function since the calling actor is the goblin itself. Use GetPos x, y, and z. Then use the actorName.MoveTo x-5, y, z (5 units behind goblin) for fine tuning. If all of this is done OnActivate it would not only save the memory of having the npc and goblin traveling together during every frame but also keep the goblin from being stuck at an xmarker. Just Kill, Disable, and DeleteFullActorCopy (as [[User:MaXiMiUS|MaXiMiUS]] pointed out) after the event is finished. To get the goblin to face the PC get the PC's degree rotation values and set the goblin up 180 degrees the opposite of the player heading right before the conversation with the npc is initiated. This should make them face one another.


:Nope, we already tried that. [[User:TheImperialDragon|The Imperial Dragon]] 15:09, 8 June 2006 (EDT)
:For most of what you're saying, we already tried.
 
:To go into more depth, the PlaceAtMe is a good idea, but unless the game is told to do this every frame, the NPC ends up WAY outside the goblin, due to collision issues.  Furthermore, the script is already OnActivate, or at least the dialogue part.  The PlaceAtMe every frame should be able to do the trick to have the goblin travel.
 
:Good thinking on the rotate angle thing though, I'll give it a try.  With this bit of information, I think we may come to the conclusion of this nightmare of a long answer yet. [[User:TheImperialDragon|The Imperial Dragon]] 15:18, 8 June 2006 (EDT)
 
[[Category:Questions]]
[[Category:Questions]]