thetastyfish
Junior Member
Posts: 18
Threads: 6
Joined: Feb 2013
Reputation:
0
|
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 |
|