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
Making an enemy not despawn after dying
Nickshrike Offline
Junior Member

Posts: 30
Threads: 1
Joined: Mar 2012
Reputation: 1
#4
RE: Making an enemy not despawn after dying

Im getting an error with the code you provided

I added a bracket in at the end of checkpoint as you appear to have forgot one there and some of the errors went away.
But im also getting an error saying "expected ("
Apparently it wants me to put a bracket here like this: void (enemykill(string &in asName, int alCount) which doesn't make sense o_o

EDIT: Ah, it's a function in a function and that may not be possible. I removed the void but im still getting an error telling me to put a bracket here now:
enemykill(string (&in asName, int alCount)

EDIT2: Fixed it, I put the function in a stupid place.

And yes, it works perfectly and respawns every time the player dies so I don't have to make tons of inactive monsters ^^

Thanks for the help Big Grin
(This post was last modified: 04-03-2012, 11:32 AM by Nickshrike.)
04-03-2012, 11:21 AM
Find


Messages In This Thread
RE: Making an enemy not despawn after dying - by Nickshrike - 04-03-2012, 11:21 AM



Users browsing this thread: 1 Guest(s)