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
help with script
mccrazy5 Offline
Junior Member

Posts: 11
Threads: 4
Joined: Jun 2012
Reputation: 0
#1
help with script

i tried to script something .. tell me please whats wrong with this script... when i start the map the game crash.
void OnStart()
{
AddEntityCollideCallback("Player", "bookarea", "bookscare", true, 1);

}
void bookscare(string &in asParent, string &in asChild, int alState)
{
AddPropForce("book1", 31, 1, -19.25, "world");
SetEntityActive("light1",true);
SetEntityActive("light2",true);
SetEntityActive("mb_window_1",false);
SetEntityActive("mb_window_noglass_1",true);
PlaySoundAtEntity("", "break_glass_large", "mb_window_noglass_1", 0, false);
}
07-06-2012, 09:21 PM
Find


Messages In This Thread
help with script - by mccrazy5 - 07-06-2012, 09:21 PM
RE: help with script - by Cruzore - 07-06-2012, 09:25 PM
RE: help with script - by mccrazy5 - 07-06-2012, 09:32 PM
RE: help with script - by Cruzore - 07-06-2012, 09:33 PM
RE: help with script - by mccrazy5 - 07-06-2012, 09:35 PM
RE: help with script - by Adny - 07-06-2012, 09:37 PM
RE: help with script - by Cruzore - 07-06-2012, 09:37 PM
RE: help with script - by mccrazy5 - 07-06-2012, 09:40 PM



Users browsing this thread: 1 Guest(s)