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 with combining scripts
Tomato Cat Offline
Senior Member

Posts: 287
Threads: 2
Joined: Sep 2012
Reputation: 20
#5
RE: Help with combining scripts

JustAnotherPlayer made some adjustments for you:

PHP Code: (Select All)
PlaySoundAtEntity("""unlock_door""door"0false);
//This is proper. "Quotations" denote a string argument. JAP fixed this for you.

//You had this:

PlaySoundAtEntity("""unlock_door"door0false);
//"door" is not a string. It was also like this in the SetSwing door function. 

Also, right here:

PHP Code: (Select All)
RemoveItem("item");
//If you're trying to use the asItem parameter to remove said item, it would be asItem rather than "item"
RemoveItem(asItem); //This is correct 

I'm *guessing* this is what's wrong. I dunno. What specifically is happening?

Make sure your level editor names match etcetc.
(This post was last modified: 05-24-2013, 03:29 AM by Tomato Cat.)
05-24-2013, 03:26 AM
Find


Messages In This Thread
Help with combining scripts - by Wank - 05-24-2013, 01:22 AM
RE: Help with combining scripts - by Tomato Cat - 05-24-2013, 01:34 AM
RE: Help with combining scripts - by Wank - 05-24-2013, 03:20 AM
RE: Help with combining scripts - by Wank - 05-24-2013, 12:06 PM
RE: Help with combining scripts - by Tomato Cat - 05-24-2013, 03:26 AM
RE: Help with combining scripts - by Wank - 05-24-2013, 11:09 PM
RE: Help with combining scripts - by Wooderson - 05-24-2013, 11:18 PM



Users browsing this thread: 1 Guest(s)