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
Trying to use CreateEntityAtArea
thetastyfish Offline
Junior Member

Posts: 18
Threads: 6
Joined: Feb 2013
Reputation: 0
#13
RE: Trying to use CreateEntityAtArea

Hi, I'm having the same issue as FragdaddyXXL. I'm trying to set it up so that when the player collides with "ScriptArea_7", an eagle statue spawns at "eagle_appear", but when I test it out, nothing happens.

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_7", "FUNCTION7", true, 1);
}

void FUNCTION7(string &in asParent, string &in asChild, int alState)
{
if(alState == 1)
{
CreateEntityAtArea("eagle_1", "eagle.ent", "eagle_appear", false);
}
SetLightVisible("PointLight_2", true);
SetLightVisible("PointLight_1", true);
}

I know that this is probably poorly written, but I've only been working with this for about a month, so I appreciate your patience. Again, I'm just trying to make an eagle statue appear at "eagle_appear", and it just isn't happening.
02-28-2013, 12:21 AM
Find


Messages In This Thread
RE: Trying to use CreateEntityAtArea - by jens - 04-10-2012, 02:36 PM
RE: Trying to use CreateEntityAtArea - by Putmalk - 04-10-2012, 08:35 PM
RE: Trying to use CreateEntityAtArea - by Apjjm - 04-13-2012, 12:18 AM
RE: Trying to use CreateEntityAtArea - by thetastyfish - 02-28-2013, 12:21 AM



Users browsing this thread: 1 Guest(s)