![]() |
CreateEntityAtArea problem - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: CreateEntityAtArea problem (/thread-9572.html) |
CreateEntityAtArea problem - Rapture - 08-03-2011 Is this another one of the functions that need some special need like Code: SetSwingDoorClosed Code: AddPropImpulse I'm trying to do loops (gonna figure it out myself hopefully). I'm testing to create some pots that will be made every 1 second for 10 times, and apparently nothing is being created. I tested out the sound, and I it works correctly. Code: for(int i = 0; i <10; i++) Code: void TimerFunction(string &in asTimer) ![]() RE: CreateEntityAtArea problem - Kyle - 08-03-2011 Try this: Code: void OnStart() I was able to implement rocks to be created at random times at random areas and random rock sizes (out of 2). After the 100th or so rock does it start lagging. xD RE: CreateEntityAtArea problem - Apjjm - 08-03-2011 Rapture, your code should work. Perhaps the entity needs a unique name, though, so try: Code: //Change your first bit of code to this Though note that this will create all the vases at one location. You should create multiple script areas and do the following: Code: //Change your first bit of code to this |