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
Throwing entity at other entity
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#4
RE: Throwing entity at other entity

So, make a ScriptArea that fits the pipe.

Now:

void OnStart()
{
AddEntityCollideCallback("Rock", "ScriptArea_pipe", "CRASH", true, 1);
}

void CRASH (string &in asParent, string &in asChild, int alState)
{
////Do the crash effect. It can be:
SetEntityActive("Broken_pipe", true);
SetEntityActive("Pipe", false);
///Feel free to add particle effects and others
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 12-13-2012, 11:04 PM by The chaser.)
12-13-2012, 11:03 PM
Find


Messages In This Thread
Throwing entity at other entity - by ElectricRed - 12-13-2012, 10:45 PM
RE: Throwing entity at other entity - by Adny - 12-13-2012, 11:02 PM
RE: Throwing entity at other entity - by The chaser - 12-13-2012, 11:03 PM
RE: Throwing entity at other entity - by Rapture - 12-14-2012, 03:38 AM



Users browsing this thread: 1 Guest(s)