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
Something weird is happening with my script.
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#1
Something weird is happening with my script.

I was making a final script for a level of mine, where you have to hit a wall with a sledge to destroy it, so you can go to the other side. However, when I hit the area with the sledge, nothing happens.


void OnStart()
{
AddEntityCollideCallback("Sledge_1", "Area_use_sledge", "Destroywall", true, 1);
}

void Destroywall (string &in asParent, string &in asChild, int alState)
{
SetEntityActive("cracks_brown_1", false);
SetEntityActive("cellarbase_wall_cracked_2", false);
SetEntityActive("cellarbase_wall_cracked_1", false);
SetEntityActive("cellarbase_wall_destroyable_1", true);
CreateParticleSystemAtEntity("Particle_dust", "ps_dust_break_25.ps", "Area_use_sledge", false);
PlaySoundAtEntity("Destroydawall", "explosion_rock_large.snt", "Player", 0.1, false);
}

The curious thing is that if I try exactly the same script with the exact names in another map, it works...

Any clue of this?

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 07-02-2013, 12:38 PM by The chaser.)
07-02-2013, 12:36 PM
Find


Messages In This Thread
Something weird is happening with my script. - by The chaser - 07-02-2013, 12:36 PM



Users browsing this thread: 2 Guest(s)