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 script help
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#2
RE: script help

(04-04-2012, 12:15 PM)zombiehacker595 Wrote: AddEntityCollideCallback("player", "Monster_Deactivate_1", "DeactivateGrunt", true, 1);
}

void DeactivateGrunt(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_2", false);
}

is there anything wrong in that i get no error but the script doesnt work by the names you should know what i am trying to do so is anything wrong in it?
There is something called "debug messages" that can help you track down the root of your many problems. Just add the following in various places of your code:
AddDebugMessage("Well, at least this part of the code was executed.", false);

Just by setting this line inside your DeactivateGrunt() function, you can find out if the first two lines are working as they should or not.


Noob scripting tutorial: From Noob to Pro

04-04-2012, 12:39 PM
Find


Messages In This Thread
script help - by zombiehacker595 - 04-04-2012, 12:15 PM
RE: script help - by Cranky Old Man - 04-04-2012, 12:39 PM
RE: script help - by JetlinerX - 04-04-2012, 03:46 PM
RE: script help - by Datguy5 - 04-04-2012, 06:00 PM
RE: script help - by jessehmusic - 04-04-2012, 06:48 PM
RE: script help - by Putmalk - 04-04-2012, 07:53 PM
RE: script help - by Datguy5 - 04-04-2012, 08:01 PM
RE: script help - by Putmalk - 04-04-2012, 09:15 PM



Users browsing this thread: 1 Guest(s)