Thread: [PI]Item On Object

Results 1 to 3 of 3
  1. #1 [PI]Item On Object 
    Registered Member
    Join Date
    Apr 2012
    Posts
    33
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    I just want to make it so when you use a key on a door it opens.
    I've made so it wont open on just a click.

    I thought i just could add this code:
    Code:
    case 2559:    // The door
    	if(itemId = 3606) {   // The key
    		c.getPA().object(-1, obX, obY, 0, 0);   //This is the code used for all of the other global doors and other stuff.
    	}
    But i just get the error that the variable itemId cannot be found. Arent i suppose to import where the itemId variable is made? I tried importing everything with "itemId" in it but it still wouldnt work... Anyone know how to fix this?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Nov 2012
    Posts
    45
    Thanks given
    1
    Thanks received
    6
    Rep Power
    37
    You need to use c.ItemId or whatever contains item id. I haven't used PI in ages, so I can't tell you exactly which file contains it, but that IS your problem.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2012
    Posts
    33
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Anyone else? Still need da help.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 3
    Last Post: 02-06-2012, 07:03 AM
  2. Replies: 1
    Last Post: 06-21-2011, 06:40 PM
  3. Replies: 3
    Last Post: 07-01-2010, 04:19 AM
  4. Replies: 2
    Last Post: 03-23-2010, 10:17 PM
  5. Replies: 26
    Last Post: 03-13-2009, 07:49 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •