harIII Posted November 23, 2009 Share Posted November 23, 2009 I'm using this line of code from the Movie Tutorial here on LF: PlayMovie("PerMov01"); And for some reason it just keeps repeating itself; if you click, hit escape, or let it play all the way through, the movie will just simply play itself over again and again. Link to comment Share on other sites More sharing options...
JebusJM Posted November 23, 2009 Share Posted November 23, 2009 loop=false Link to comment Share on other sites More sharing options...
harIII Posted November 23, 2009 Author Share Posted November 23, 2009 How would I enter that in? Link to comment Share on other sites More sharing options...
DarthStoney Posted November 23, 2009 Share Posted November 23, 2009 How are you triggering the script to play the movie? Link to comment Share on other sites More sharing options...
harIII Posted November 23, 2009 Author Share Posted November 23, 2009 By an onEnter field in the .are file of the module. Link to comment Share on other sites More sharing options...
DarthStoney Posted November 23, 2009 Share Posted November 23, 2009 Then you probably want something like this void main() { if (GetLoadFromSaveGame()) { return; } object oEntering = GetEnteringObject(); if ((!GetIsPC(oEntering))) { return; } if ((!GetLocalBoolean(OBJECT_SELF, 40))) { SetLocalBoolean(OBJECT_SELF, 40, 1); PlayMovie("PerMov01"); } } this way it will only fire once on enter. Link to comment Share on other sites More sharing options...
stoffe Posted November 23, 2009 Share Posted November 23, 2009 By an onEnter field in the .are file of the module. The OnEnter event on areas trigger whenever any creature is spawned into the area, not just the player. This includes the player character, party members, NPCs and monsters. Also note that the player party is "entering" the area both when you transition to the area, and whenever you load a savegame in that area. Link to comment Share on other sites More sharing options...
harIII Posted November 23, 2009 Author Share Posted November 23, 2009 This is a map that you'll only enter twice, how would I do that; I've not been able to work with booleans that much. Link to comment Share on other sites More sharing options...
DarthStoney Posted November 23, 2009 Share Posted November 23, 2009 Do you want the movie to play only once or both times you enter the module? Link to comment Share on other sites More sharing options...
harIII Posted November 23, 2009 Author Share Posted November 23, 2009 Just once Link to comment Share on other sites More sharing options...
DarthStoney Posted November 23, 2009 Share Posted November 23, 2009 void main() { if (GetLoadFromSaveGame()) { return; } object oEntering = GetEnteringObject(); if ((!GetIsPC(oEntering))) { return; } if ((!GetLocalBoolean(OBJECT_SELF, 40))) { SetLocalBoolean(OBJECT_SELF, 40, 1); PlayMovie("PerMov01"); } } Then this script should work for your purpose. It should only run once and only when PC entering. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.