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?
Dobbydoo Offline
Member

Posts: 50
Threads: 6
Joined: Aug 2011
Reputation: 0
#10
RE: [Help] How make a statue an enemy?

(01-20-2012, 07:44 PM)Rokotain Wrote: 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!
Unfortunately that didn't work either :/
I don't wan't to make a skeleton for it, so I think I'll maybe just script the whole thing. Maybe. Either that or I'll have to learn how to make a skeleton, and with the model I'm using I think I'll just have to make an entirely new entity in Maya, which means I'll have to learn 3d-modeling too. I wan't to learn it, but I also wan't my story to be finished soon, so I don't know what to do. Gaaaaaah!


01-20-2012, 09:54 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 Dobbydoo - 01-20-2012, 09:54 PM



Users browsing this thread: 1 Guest(s)