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 insert potions into furniture?
EXAWOLT Offline
Member

Posts: 113
Threads: 14
Joined: Apr 2012
Reputation: 3
#2
RE: How do i insert potions into furniture?

some entities can be checked as "breakeable", and for example a vase, in the entity tab, you can set "contained item" and choose what u want.
then for exe. a table, u need a script:
SetEntityCallbackFunc(string& asName, string& asCallback);
Calls a function when the player interacts with a certain entity.
Callback syntax: void MyFunc(string &in asEntity, string &in type)
Type depends on entity type and includes: “OnPickup”, “Break”, “OnIgnite”, etc
then in the void youll have:
SetEntityActive("?", true);

simply nuff said




09-15-2012, 03:30 PM
Find


Messages In This Thread
RE: How do i insert potions into furniture? - by EXAWOLT - 09-15-2012, 03:30 PM



Users browsing this thread: 1 Guest(s)