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
Brute doesn't want to go away.
The Shanus Offline
Member

Posts: 134
Threads: 15
Joined: Jun 2012
Reputation: 3
#1
Question  Brute doesn't want to go away.

Okay, so I've scripted an event, but would like the brute to despawn at the area "brute1stoparea".

I'm sure there's something wrong with my script, I just can't see it.

Here's my relevant script:
PHP Code: (Select All)
void OnEnter()
{
AddUseItemCallback("""room101key""room101""UsedKeyOnDoor"true);
AddUseItemCallback("""room100key""room100""UsedKeyOnDoor"true);
AddUseItemCallback("""hollow_needle_1""padlock_rusty_1""unlock_prison_section_1"true);
AddEntityCollideCallback("Player""prison_1swingarea""func_slam"true1);
AddEntityCollideCallback("Player""intromusic1""playintromusic1"true1);
AddEntityCollideCallback("brute1""brute1stoparea""endbrute1"true1);
SetEntityPlayerInteractCallback("prison_1""func_slam"true);
SetEntityCallbackFunc("room100key""OnPickup");
SetEntityCallbackFunc("NOTETWO""OnPickup");
}

void endbrute1(string &in asEntity)
{
SetEntityActive("brute1"false);


I get no errors, but he doesn't deactivate at the area.

[Image: theshanusyoutube.jpg]
(This post was last modified: 06-21-2012, 09:07 PM by The Shanus.)
06-21-2012, 05:53 PM
Find


Messages In This Thread
Brute doesn't want to go away. - by The Shanus - 06-21-2012, 05:53 PM
RE: Grunt doesn't want to go away. - by Adny - 06-21-2012, 05:58 PM
RE: Brute doesn't want to go away. - by Cruzore - 06-21-2012, 06:34 PM
RE: Brute doesn't want to go away. - by Adny - 06-21-2012, 06:46 PM



Users browsing this thread: 1 Guest(s)