Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Please with Scripting
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#12
RE: Help Please with Scripting

You are not understanding what I am saying.

void OnStart()

{

AddUseItemCallback("", "key_1", "level_celler_1", "UnlockLevelDoor", true);

}


void UnlockLevelDoor(string &in asItem,string &in asEntity)

{

SetLevelDoorLocked(asEntity, false);

RemoveItem(asItem);

}


That's his correct code. But if he puts the function in void OnLeave() (like he did) instead of void OnStart the function won't be linked the the callback in void OnStart.
(03-31-2012, 04:43 PM)abe.lloyd Wrote: it says cannotuseItem this way
If it says cannot use item this way it means you have not saved it or are not naming the things correctly. It works perfectly on my computer.

(This post was last modified: 03-31-2012, 04:45 PM by flamez3.)
03-31-2012, 04:44 PM
Find


Messages In This Thread
Help Please with Scripting - by abe.lloyd - 03-31-2012, 12:00 PM
RE: Help Please with Scripting - by SilentStriker - 03-31-2012, 12:01 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 01:58 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 03:41 PM
RE: Help Please with Scripting - by SilentStriker - 03-31-2012, 03:48 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 04:03 PM
RE: Help Please with Scripting - by SilentStriker - 03-31-2012, 04:29 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 04:36 PM
RE: Help Please with Scripting - by flamez3 - 03-31-2012, 04:36 PM
RE: Help Please with Scripting - by SilentStriker - 03-31-2012, 04:38 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 04:43 PM
RE: Help Please with Scripting - by flamez3 - 03-31-2012, 04:44 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 04:59 PM
RE: Help Please with Scripting - by flamez3 - 03-31-2012, 05:07 PM
RE: Help Please with Scripting - by abe.lloyd - 04-01-2012, 10:16 AM
RE: Help Please with Scripting - by flamez3 - 04-01-2012, 10:25 AM
RE: Help Please with Scripting - by abe.lloyd - 04-01-2012, 10:39 AM



Users browsing this thread: 6 Guest(s)