Salk Posted December 20, 2014 Share Posted December 20, 2014 Hello! Simple question: I have two creatures: X (summoned) and Y (summoner). How do I make creature Y face creature X using creature X's script? My problem is the object. IF Global("Facemenow", "LOCALS", 0) THEN RESPONSE #100 ActionOverride(LastSummonerOf(Myself), FaceObject()) SetGlobal("Facemenow", "LOCALS", 1) END Thanks for your suggestions/tips. Link to comment
Jarno Mikkola Posted December 20, 2014 Share Posted December 20, 2014 FaceObject([PC]) ActionOverride(LastSummonerOf(Myself),FaceObject(Myself)) ... could work. PS, remove the spaces in all of the lines ! Link to comment
Salk Posted December 20, 2014 Author Share Posted December 20, 2014 Unfortunately Myself does not work. The way I see it, LastSummonerOf(Myself) is Actor Y and would end up facing himself with FaceObject(Myself)? Link to comment
Salk Posted December 20, 2014 Author Share Posted December 20, 2014 I was hoping to use FaceObject("NAMEOFTHECREATURE") but this doesn't seem to work either. I guess I'll just have to give up... Link to comment
lynx Posted December 20, 2014 Share Posted December 20, 2014 if the creature's script name is unique, you could hardcode it in. In the unlikely event that the locations are known, you could also use coordinates. edit: scriptname should work just fine, make sure something else is not going awry. Link to comment
Salk Posted December 20, 2014 Author Share Posted December 20, 2014 The scriptname is wtpwish and I tested this to work if I replace "wtpwish" with Player1. ActionOverride(LastSummonerOf(Myself),FaceObject("wtpwish")) I don't understand what I am doing wrong. Link to comment
Salk Posted December 20, 2014 Author Share Posted December 20, 2014 Okay, I think I understand what's happening. If I used the console: CLUAConsole:CreateCreature("wtpwish") then it works. But the same creature (wtpwish) summoned via Summon Creature (67) cannot be identified as object for some reason. Any advice? UPDATE: As I experiment further, I noticed something interesting. If I save the game with the summoned creature and then reload, everything works. There must be something that fixes it upon reloading the saved game. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.