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
Script Help why wont this work?
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: why wont this work?

You scripted "hollow_needle_1" to be used on the grunt part, change it to "glass_container_1" and it should work.

Also, your GiveItem line has some errors:

The first argument, which you left empty, needs to be the item's internal name. In this case it looks like you want it to be called "glass_container_blood_1", right?

The second argument is the item's filename. Change it to "glass_container_blood". You don't want the "_1" there because that's just the item's index, which is simply a way to keep track of unique objects in the map, in case you so choose to place multiple ones of the same type.

The third argument is the item type. There are a few different types, but don't worry about that, just change it to "Puzzle".

The fourth argument is the image type. Again, remove the "_1".

The last argument is supposed to be an integer. You put a floating point value. The wiki says it's a float but that begs the question: How do you acquire 1.5f jars? Anyways, I don't think it really matters because if you convert a float to an integer I believe it simply rounds down. But it wouldn't hurt to change it Smile

(This post was last modified: 01-28-2012, 02:53 PM by palistov.)
01-28-2012, 02:49 PM
Find


Messages In This Thread
why wont this work? - by oscar1007 - 01-28-2012, 02:31 PM
RE: why wont this work? - by palistov - 01-28-2012, 02:49 PM
RE: why wont this work? - by oscar1007 - 01-28-2012, 04:22 PM
RE: why wont this work? - by palistov - 01-28-2012, 06:15 PM



Users browsing this thread: 1 Guest(s)