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 Opening doors with wind
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#1
Opening doors with wind

Hello everyone!

So, I was making my map and I wanted to make a scare (a door opening) what doesn't work is the force part. I don't know what the hell is wrong, I've tried a lot of things but nothing works. So, I hope someone finds the problem. Confused
Here's the script, I only post the problematic part (Note that this is going to be used for a serious CS)

Script:

void Open_door_wind_1(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("castle_1", false, true);
SetSwingDoorDisableAutoClose("castle_1", true);
AddTimer("", 0.5, "Door_1_timer");
}

void Door_1_timer (string &in asTimer)
{
CreateParticleSystemAtEntity("", "ps_dust_whirl", "AreaOpenEffect", false);
PlaySoundAtEntity("AreaOpenEffect", "scare_wind.snt", "Player", 1, true);
AddPropForce("castle_1", 0, 0, -800, "world");
}

void Open_door_wind_2(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("castle_2", false, true);
SetSwingDoorDisableAutoClose("castle_2", true);
AddTimer("", 0.5, "Door_2_timer");
}

void Door_2_timer (string &in asTimer)
{
CreateParticleSystemAtEntity("", "ps_dust_whirl", "AreaOpenEffect_1", false);
PlaySoundAtEntity("AreaOpenEffect_1", "scare_wind.snt", "Player", 1, true);
AddPropForce("castle_2", -2000, 0, 0, "world");
}

I'm worried about this (and there is no map_cache, if someone thought that was the problem) Sad

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
09-27-2012, 09:40 PM
Find


Messages In This Thread
Opening doors with wind - by The chaser - 09-27-2012, 09:40 PM
RE: Opening doors with wind - by Statyk - 09-27-2012, 10:01 PM
RE: Opening doors with wind - by Akos115 - 09-27-2012, 10:11 PM
RE: Opening doors with wind - by Your Computer - 09-27-2012, 10:40 PM
RE: Opening doors with wind - by Vic7im - 09-28-2012, 12:43 AM
RE: Opening doors with wind - by The chaser - 09-28-2012, 12:52 PM
RE: Opening doors with wind - by The chaser - 09-28-2012, 01:52 PM
RE: Opening doors with wind - by The chaser - 09-28-2012, 02:20 PM
RE: Opening doors with wind - by The chaser - 09-30-2012, 03:27 PM
RE: Opening doors with wind - by Wapez - 10-02-2012, 05:13 PM



Users browsing this thread: 1 Guest(s)