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
Script Help Slight problem with prop impulse
serbusfish Offline
Member

Posts: 211
Threads: 75
Joined: Aug 2012
Reputation: 0
#1
Slight problem with prop impulse

I have a script set up that pushes a door open. The script works fine, however I find sometimes if you try to open the door (it starts out locked) when it comes to the script activating for some reason the door wont open. Here is the script:

void BLOWOPEN(string &in asParent, string &in asChild, int alState)
            
            {
                    
                    AddTimer("OPEN", 1, "OPEN");
                    
                    SetSwingDoorLocked("castle_arched01_2", false, false);
                    SetSwingDoorDisableAutoClose("castle_arched01_2", true);
                    SetSwingDoorClosed("castle_arched01_2", false, false);
            }

void OPEN(string &in asTimer)
                    
                    {
                            AddPropImpulse("castle_arched01_2", 1, 0, 1.8, "world");
                            
                    }

(This post was last modified: 04-19-2013, 03:00 PM by serbusfish.)
04-19-2013, 02:59 PM
Find


Messages In This Thread
Slight problem with prop impulse - by serbusfish - 04-19-2013, 02:59 PM
RE: Slight problem with prop impulse - by Yare - 04-19-2013, 04:18 PM



Users browsing this thread: 1 Guest(s)