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
how do i make a painting moveable?
Hartmann Offline
Member

Posts: 52
Threads: 18
Joined: Jun 2012
Reputation: 0
#3
RE: how do i make a painting moveable?

(06-18-2012, 02:18 PM)andyrockin123 Wrote: There are several paintings in game that already are "movable", no scripting required!

You can find these in entities>ornaments. You can tell the paintings are movable by their name, the ending "dynamic" is at the end of every movable painting.

Here's an example of one:

"painting03_dynamic_1.ent"


So for your specific quest in the OP:

1. Select the "entities" section in the Level Editor
2. Select "ornaments"
3. Scroll down until you reach the paintings to choose from (the list is in alphabetical order)
4. You can now select any painting with the suffix "dynamic" or "dyn" to use;
5. Select the one you personally think is the prettiest
6. Use it in game to hide your key! Again, all paintings with dyn/dynamic can be interacted with (i.e. picked up, thrown, sat down by the fire, etc)

Hope that helped!
Thanks buddy! now can i ask you another question. i have two keys. i alrdy maked the script for the first one correct. now how shall i set u the next? Sorry im kinda new to this Smile Here is the script


////////////////////////////
// Run first time starting map

void OnStart()
{
AddUseItemCallback("", "key_1", "mansion_1", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0.0f, true);
}


////////////////////////////
// Run when leaving map
void OnLeave()
{

}

the name of the next key is key_2 and the door is mansion_2
(This post was last modified: 06-18-2012, 03:06 PM by Hartmann.)
06-18-2012, 03:04 PM
Find


Messages In This Thread
how do i make a painting moveable? - by Hartmann - 06-18-2012, 02:10 PM
RE: how do i make a painting moveable? - by Adny - 06-18-2012, 02:18 PM
RE: how do i make a painting moveable? - by Hartmann - 06-18-2012, 03:04 PM
RE: how do i make a painting moveable? - by Adny - 06-18-2012, 03:17 PM
RE: how do i make a painting moveable? - by Adny - 06-18-2012, 03:11 PM



Users browsing this thread: 1 Guest(s)