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 Collide function issue
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#1
Collide function issue

Hello everybody on the forum, this is me Badcat with another stupid problem that never works.

So the problem here is that I made tons of script areas which goes active in a certian timer, every 1 second a script area appears one after another. Like so
[Image: YxPys81.png?1]

Now when the player collides with the area, it should kill him instantly but ofc everything bad happens to me so it doesn't work.

I also made this in void OnStart
PHP Code: (Select All)
for(int i=1i<=28; ++iAddEntityCollideCallback("Player""ScriptArea_"+i"Diecollide"false1); 
which is for every area, and this too
PHP Code: (Select All)
void Diecollide(string &in asParentstring &in asChildint alState
{    
    
AddPlayerHealth(-200);


Of what will happen when the player collides with the certain area.
I also added a debug message to the script but still nothin, guess what??

The debug message doesn't appear cause hpl2 hates me.

So if you guys could help me solve the problem or not then thnx, idk and I can't find a problem like always.

I tried help from Flawless, Neelke, Lazzer but we couldn't find it so if you guys do then peace and thnx :p

(This post was last modified: 09-17-2014, 10:55 PM by Radical Batz.)
09-17-2014, 10:53 PM
Find


Messages In This Thread
Collide function issue - by Radical Batz - 09-17-2014, 10:53 PM
RE: Collide function issue - by Daemian - 09-18-2014, 01:44 AM
RE: Collide function issue - by Radical Batz - 09-18-2014, 07:34 AM
RE: Collide function issue - by burge4150 - 09-18-2014, 05:09 AM
RE: Collide function issue - by i3670 - 09-18-2014, 06:20 AM
RE: Collide function issue - by Mudbill - 09-18-2014, 07:27 AM
RE: Collide function issue - by PutraenusAlivius - 09-18-2014, 08:15 AM
RE: Collide function issue - by Mudbill - 09-18-2014, 08:44 AM
RE: Collide function issue - by PutraenusAlivius - 09-18-2014, 09:04 AM
RE: Collide function issue - by Wapez - 09-18-2014, 08:51 AM
RE: Collide function issue - by Radical Batz - 09-18-2014, 09:04 AM
RE: Collide function issue - by MrBehemoth - 09-18-2014, 09:22 AM
RE: Collide function issue - by Mudbill - 09-18-2014, 09:24 AM
RE: Collide function issue - by Radical Batz - 09-18-2014, 09:31 AM
RE: Collide function issue - by Mudbill - 09-18-2014, 09:59 AM
RE: Collide function issue - by Radical Batz - 09-18-2014, 10:23 AM
RE: Collide function issue - by Radical Batz - 09-18-2014, 02:09 PM
RE: Collide function issue - by burge4150 - 09-18-2014, 02:28 PM
RE: Collide function issue - by PutraenusAlivius - 09-18-2014, 02:31 PM
RE: Collide function issue - by Radical Batz - 09-18-2014, 02:33 PM



Users browsing this thread: 1 Guest(s)