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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Contained item
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#11
RE: Contained item

(09-08-2012, 05:54 PM)Kiwi2703 Wrote: I thought maybe there is a script that would set the customsubitemname for a certain thing... Is there? Huh
Never heard of it.. Only GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount);

Trying is the first step to success.
09-08-2012, 06:13 PM
Find
Kiwi2703 Offline
Junior Member

Posts: 27
Threads: 5
Joined: Sep 2012
Reputation: 2
#12
RE: Contained item

(09-08-2012, 06:13 PM)beecake Wrote:
(09-08-2012, 05:54 PM)Kiwi2703 Wrote: I thought maybe there is a script that would set the customsubitemname for a certain thing... Is there? Huh
Never heard of it.. Only GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount);
So the only way to do it is setting an event after breaking the bottle... then use the GiveItem... am I right?
09-08-2012, 06:26 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#13
RE: Contained item

No sorry, I don't know, but that would not look like the key is inside the bottle

Trying is the first step to success.
09-08-2012, 06:31 PM
Find
Kiwi2703 Offline
Junior Member

Posts: 27
Threads: 5
Joined: Sep 2012
Reputation: 2
#14
RE: Contained item

I will probably do it like this: When the player breaks the bottle, he will automatically obtain the key. And some message like "yay, I found it!" will pop up..
Thanks for answers though! Smile

That also makes me ask... How do I set the event when player break the bottle? I see CallbackFunc for the bottle and there is also "Break", but I dunno how to use it.. :/
(This post was last modified: 09-08-2012, 06:36 PM by Kiwi2703.)
09-08-2012, 06:32 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#15
RE: Contained item

If you have a small map, you could cover the floor in a script area, and make it collide function with the bottle. Then in the function make it SetPropHealth("Bottle", 0); and the GiveItem, and SetMessage...

Trying is the first step to success.
09-08-2012, 06:41 PM
Find
Kiwi2703 Offline
Junior Member

Posts: 27
Threads: 5
Joined: Sep 2012
Reputation: 2
#16
RE: Contained item

(09-08-2012, 06:41 PM)beecake Wrote: If you have a small map, you could cover the floor in a script area, and make it collide function with the bottle. Then in the function make it SetPropHealth("Bottle", 0); and the GiveItem, and SetMessage...
Not a bad idea but the player can throw it into a wall, ceiling or some other objects as well..
09-08-2012, 06:50 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#17
RE: Contained item

Indeed... Thats kinda buggy

Trying is the first step to success.
09-08-2012, 07:13 PM
Find




Users browsing this thread: 1 Guest(s)