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
Why wouldn't this script work?
Battlefield3142 Offline
Junior Member

Posts: 13
Threads: 3
Joined: May 2012
Reputation: 0
#1
Why wouldn't this script work?

(in OnStart)
AddEntityCollideCallback("Player", "popout1", "SetEntityActive", false, 0); (When player crosses a script box called popout1, an entity is set active.

then


void SetEntityActive(string& jesus, bool abActive);
{
if(HasItem("scarykey_1") == false) return;
SetEntityActive("jesus");
}

if a player has an item called scarykey_1, this wont happen and it will return to unactive
make entity (a rag doll called jesus) active.

for some reason I receive an error when launching the map.

not sure why.
05-29-2012, 07:18 PM
Find


Messages In This Thread
Why wouldn't this script work? - by Battlefield3142 - 05-29-2012, 07:18 PM



Users browsing this thread: 1 Guest(s)