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
Death with inventory item.
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#3
RE: Death with inventory item.

Perhaps something like this?

void OnStart()
{
     if (GetPlayerHealth() <= 0)
     {
          RemoveItem("ItemName");
          SetEntityActive("ItemName");
     }
}

It might work if you try it like this.

Whoops, Tanshaydar is right. I shouldn't use SetEntityActive because the player can move the object with another entity. Tongue

(This post was last modified: 08-22-2011, 04:00 PM by Kyle.)
08-22-2011, 03:58 PM
Find


Messages In This Thread
Death with inventory item. - by Homicide13 - 08-22-2011, 03:50 PM
RE: Death with inventory item. - by Tanshaydar - 08-22-2011, 03:58 PM
RE: Death with inventory item. - by Kyle - 08-22-2011, 03:58 PM
RE: Death with inventory item. - by Homicide13 - 08-22-2011, 06:27 PM
RE: Death with inventory item. - by Kyle - 08-22-2011, 06:41 PM
RE: Death with inventory item. - by Homicide13 - 08-22-2011, 08:17 PM
RE: Death with inventory item. - by Kyle - 08-22-2011, 08:44 PM
RE: Death with inventory item. - by Homicide13 - 08-22-2011, 08:55 PM



Users browsing this thread: 1 Guest(s)