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 transform an object into a monster?
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: How do I transform an object into a monster?

Make it so it is not the player that collides with the script area, but rather the item.
Place a squared script area in the middle of the corridor. (I guess it is a corridor)
Then put some diagonal block boxes so the item, is forced to hit the script area.

so the script:

void OnStart()
{

AddEntityCollideCallback("ITEM", "ScriptArea_1", "OnItemCollide_1", true, 1);
}

void OnItemCollide_1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
SetEntityActive("ITEM", false);

}

Trying is the first step to success.
06-27-2012, 09:20 PM
Find


Messages In This Thread
RE: How do I transform an object into a monster? - by FlawlessHappiness - 06-27-2012, 09:20 PM



Users browsing this thread: 1 Guest(s)