08-03-2011, 03:27 AM
Is this another one of the functions that need some special need like because you can't close a door without using
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.
Copied the code from wiki.frictional, couldn't find any loop examples anywhere else or any ones I want.
So can I not create entities at areas? I would find this very sad for my custom story
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++)
AddTimer("T", i, "TimerFunction");
Code:
void TimerFunction(string &in asTimer)
{
PlaySoundAtEntity("scare", "react_scare.snt", "Player", 0, false);
CreateEntityAtArea("Create", "vase01.ent", "ScriptArea_1", false);
}