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
How to use additementity and remove item?
Stepper321 Offline
Senior Member

Posts: 263
Threads: 26
Joined: Nov 2011
Reputation: 8
#4
RE: How to use additementity and remove item?

(05-15-2012, 06:25 PM)FragdaddyXXL Wrote:
(05-15-2012, 01:40 PM)MissMarilynn Wrote: OH and could I use this to set an area active? How would I do that?
Inside Strepper's example function aptly named function, you can add:

if(asItem == "KeyThatActivatesArea")
{
AddEntityCollideCallback(string& asParentName, string& asChildName, string& asFunction, bool abDeleteOnCollide, int alStates);
}

That will tell the engine to start looking for a collision between the player and the script area.
You can also do it in the entities tab. ItemInteractCallback. It's syntax is
void name(string &in Entity) // Choose your own name (the one you put in ItemInteractCallback)
{
AddEntityCollideCallback(string& asParentName, string& asChildName, string& asFunction, bool abDeleteOnCollide, int alStates);
}

Wich one you prefer tough.

Signature to awesome to be displayed.
(This post was last modified: 05-15-2012, 06:34 PM by Stepper321.)
05-15-2012, 06:33 PM
Find


Messages In This Thread
RE: How to use additementity and remove item? - by Stepper321 - 05-15-2012, 06:33 PM



Users browsing this thread: 1 Guest(s)