Scripting, Code & Interaction: Difference between revisions
no edit summary
m (Reverted edits by ReldrOnsit (Talk); changed back to last version by Ashen) |
Monkey'05'06 (talk | contribs) No edit summary |
||
Line 382: | Line 382: | ||
''I can't seem to find in the manual how to turn objects etc, on and off from another room. Is there just not a command for this or am I going insane?'' | ''I can't seem to find in the manual how to turn objects etc, on and off from another room. Is there just not a command for this or am I going insane?'' | ||
No, you're not going insane - there's no direct way to do this. You'll have to use variables (GlobalInts or your own - see the earlier entry on [[Scripting%2C_Code_%26_Interaction#Working_with_variables:_the_basics|working with variables]]), and check them in the 'Player enters Room' interaction of the room the Object (or whatever) is in. If you're likely to need to do it a lot you might want to try the {{Thread | No, you're not going insane - there's no direct way to do this. You'll have to use variables (GlobalInts or your own - see the earlier entry on [[Scripting%2C_Code_%26_Interaction#Working_with_variables:_the_basics|working with variables]]), and check them in the 'Player enters Room' interaction of the room the Object (or whatever) is in. If you're likely to need to do it a lot you might want to try the {{Thread|OtherRoom module|20650}}, which handles everything for you. | ||
[[Category:AGS Beginners' FAQ]] | [[Category:AGS Beginners' FAQ]] | ||
[[Category:Scripting]] | [[Category:Scripting]] |