The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
CreateEntityAtArea problem
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#1
CreateEntityAtArea problem

Is this another one of the functions that need some special need like
SetSwingDoorClosed
because you can't close a door without using
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.

    for(int i = 0; i <10; i++)
        AddTimer("T", i, "TimerFunction");
Copied the code from wiki.frictional, couldn't find any loop examples anywhere else or any ones I want.
void TimerFunction(string &in asTimer)
{
    PlaySoundAtEntity("scare", "react_scare.snt", "Player", 0, false);
    CreateEntityAtArea("Create", "vase01.ent", "ScriptArea_1", false);
}
So can I not create entities at areas? I would find this very sad for my custom story Sad
08-03-2011, 03:27 AM
Find


Messages In This Thread
CreateEntityAtArea problem - by Rapture - 08-03-2011, 03:27 AM
RE: CreateEntityAtArea problem - by Kyle - 08-03-2011, 03:49 AM
RE: CreateEntityAtArea problem - by Apjjm - 08-03-2011, 09:25 PM



Users browsing this thread: 1 Guest(s)