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
Newbie's script problem
Ank2503 Offline
Junior Member

Posts: 21
Threads: 7
Joined: Aug 2012
Reputation: 0
#1
Sad  Newbie's script problem

My script doesn't work:i want to set grunt active,and them Hallucination him



void MonsterFunction(string &in asParent, string &in asChild, int alState)

{

SetEntityActive("servant_grunt_1", true);

SetEnemyIsHallucination(servant_grunt_1, true);

}



the error : "servant_grunt_1: is not declared"

please help,i just start scripting two days ago



sry for my bad english Big Grin
(This post was last modified: 08-15-2012, 10:09 AM by Ank2503.)
08-15-2012, 09:52 AM
Find
Ongka Offline
Member

Posts: 225
Threads: 3
Joined: Nov 2010
Reputation: 20
#2
RE: newbie's script problem

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
SetEnemyIsHallucination("servant_grunt_1", true);
}

You have to put quotation marks around names.

[Image: 18694.png]
(This post was last modified: 08-15-2012, 10:09 AM by Ongka.)
08-15-2012, 10:08 AM
Find
Ank2503 Offline
Junior Member

Posts: 21
Threads: 7
Joined: Aug 2012
Reputation: 0
#3
RE: Newbie's script problem

thx man +rep
08-15-2012, 10:11 AM
Find




Users browsing this thread: 1 Guest(s)