Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - DannyV

#1
I've searched a good while and for the life of me can't find this out, although I'm sure it's as basic as it gets.
I've caught on that when I'm outside of a room's code (like globalscript or a dialog), I can't manipulate objects for a room.  E.g.,  the following:

function cEgo_UseInv()
{
    oWall.Visible = false;
  }

returns the error: undefined token 'Wall'

I get that this isn't working because character functions aren't within the room, but what's the workaround?  Basically, how can I manipulate room objects with dialogs and character events?

Thanks so much, fellas.
SMF spam blocked by CleanTalk