daisy8 Posted June 1, 2013 Share Posted June 1, 2013 Hi everyone I would like to change the way a group of warlocks behave to the player during a scene. When the scene begins, I want the warlocks to change to NOT enemies of the player, and then change back TO enemies when the scene is complete. I have been trying to put some script in the Scene Data window attached to the scene without any luck. warlock.SetPlayerEnemy(false) is not working. Says that the variable warlock is not known. Any ideas on how to fix this ? Cheers guys Daisy Link to comment Share on other sites More sharing options...
BotOwned Posted June 1, 2013 Share Posted June 1, 2013 (edited) Hi everyone I would like to change the way a group of warlocks behave to the player during a scene. When the scene begins, I want the warlocks to change to NOT enemies of the player, and then change back TO enemies when the scene is complete. I have been trying to put some script in the Scene Data window attached to the scene without any luck. warlock.SetPlayerEnemy(false) is not working. Says that the variable warlock is not known. Any ideas on how to fix this ? Cheers guys Daisy Hello Daisy, Allow for your fragment to generate first, simply type a ; into the box and then click Compile then make sure you close down the windows of the quest (by clicking OKs) to allow the fragment to compile you should then be able to open the compiled fragment via edit source (Or you can use Edit Properties which ever you prefer) in the script list when you open it back up and then declare your property outside of the commented sections. This should then allow you to continue without incident. I hope this answers your question. Good luck. Edited June 1, 2013 by BotOwned Link to comment Share on other sites More sharing options...
daisy8 Posted June 2, 2013 Author Share Posted June 2, 2013 Hi Bot Thanks for the answer. I have given this a try but the warlocks still attack the player after the scene starts. I know the script on start and finish of the scene is working but the warlock faction property must not be connecting up with the warlocks I have, even with their faction set to warlock. Even if I only set them to be friends and not back to enemies on completion of the scene, they still detect the player and attack. Am I able to disable the AI of selected bad guys ? That way they wont detect the player until the scene is done. The scene is only 5 lines of conversation. Daisy Link to comment Share on other sites More sharing options...
Recommended Posts