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
[Help] How make a statue an enemy?
Rokotain Offline
Member

Posts: 54
Threads: 9
Joined: Jul 2011
Reputation: 0
#9
RE: [Help] How make a statue an enemy?

I'm not an expert at this at all, but I thought of an idea.

What if you make a collide callback, that whenever the statue touches the player a function gets acitavted?
And that function damages the player.

Like:
Quote:OnStart()
{
AddEntityCollideCallback("Player", "Statue_1", "StatueAttack", true, 1);
}

void StatueAttack(string &in asParent, string &in asChild, int alState)
{
GivePlayerDamage(float afAmount, string& asType, bool abSpinHead, bool abLethal);
}
As I said, this might be a completely stupid idea as I have little experience with it.
But it seems like it's worth a try. :] Good luck!
(This post was last modified: 01-20-2012, 07:45 PM by Rokotain.)
01-20-2012, 07:44 PM
Find


Messages In This Thread
[Help] How make a statue an enemy? - by Dobbydoo - 01-16-2012, 09:59 PM
RE: [Help] How make a statue an enemy? - by Rokotain - 01-20-2012, 07:44 PM



Users browsing this thread: 1 Guest(s)