FlawlessHappiness
Posting Freak
Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation:
171
|
RE: How to make a rope
(01-15-2013, 10:25 PM)The chaser Wrote: It will be a matter of attached... Hmmm... do dis, tru fren:
void OnStart() //This could change!
{
AddEntityCollideCallback("Da_box_in_da_rope", "Area", "Interact", true, 1); ///When the rope is down, it will collide with this area, which will activate an area *look down*
}
void Interact (string &in asParent, string &in asChild, int alState)
{
///I don't know how to make an area interactable, so yea... make an area which you can touch. The interaction with it will give you the item (key). Sorry for this little thing. When you interact, it will:
GiveItem("Key", "Item", "Puzzle", "key.tga", 1);
SetEntityActive("Da_key_in_da_box", false);
}
You can make the box smaller than the key so it doesn't collide with the outer of the key.
I'll see what it leads to.
Have to sleep now.
Trying is the first step to success.
|
|
01-15-2013, 10:50 PM |
|