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 Grunt
xToxic Offline
Junior Member

Posts: 8
Threads: 1
Joined: Feb 2011
Reputation: 0
#1
Help with Grunt

Hey, I need some help with my grunt on my map.

So far I have managed to make it activate when I move inside an area box, and then it will move onto the path nodes. But my problem now is that i want the grunt to de-activate when it moves to the last path node.

Help me pleaseAngel
02-25-2011, 05:56 PM
Find
nkmol Offline
Senior Member

Posts: 252
Threads: 19
Joined: Feb 2011
Reputation: 4
#2
RE: Help with Grunt

(02-25-2011, 05:56 PM)xToxic Wrote: Hey, I need some help with my grunt on my map.

So far I have managed to make it activate when I move inside an area box, and then it will move onto the path nodes. But my problem now is that i want the grunt to de-activate when it moves to the last path node.

Help me pleaseAngel
you want to fase into smoke? or just de-active?

if you want to de-active the monster. just place a script at the last pathnode. Make Callback of the script area and place the opposite of the active script. So
SetEntityActive("servant_grunt_1", false);
hope it helped Big Grin[/quote]
02-25-2011, 06:04 PM
Find
xToxic Offline
Junior Member

Posts: 8
Threads: 1
Joined: Feb 2011
Reputation: 0
#3
RE: Help with Grunt

(02-25-2011, 06:04 PM)nkmol Wrote:
(02-25-2011, 05:56 PM)xToxic Wrote: Hey, I need some help with my grunt on my map.

So far I have managed to make it activate when I move inside an area box, and then it will move onto the path nodes. But my problem now is that i want the grunt to de-activate when it moves to the last path node.

Help me pleaseAngel
you want to fase into smoke? or just de-active?

if you want to de-active the monster. just place a script at the last pathnode. Make Callback of the script area and place the opposite of the active script. So
SetEntityActive("servant_grunt_1", false);
hope it helped Big Grin
[/quote]

I was thinking about just de-activate, but if they turn into smoke that would be much cooler Big Grin How do I do it? Smile
It doesn't work!
(This post was last modified: 02-25-2011, 06:36 PM by xToxic.)
02-25-2011, 06:08 PM
Find
nkmol Offline
Senior Member

Posts: 252
Threads: 19
Joined: Feb 2011
Reputation: 4
#4
RE: Help with Grunt

void OnEnter()
AddEntityCollideCallback("servant_grunt_1", "ScriptArea_1", "GruntGone", true, 1);

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

That should work, i don't know how the smoke effect really works. But i know it's possible Wink
(This post was last modified: 02-25-2011, 06:41 PM by nkmol.)
02-25-2011, 06:39 PM
Find
xToxic Offline
Junior Member

Posts: 8
Threads: 1
Joined: Feb 2011
Reputation: 0
#5
RE: Help with Grunt

thanks xD I suck at scripting Sad
02-25-2011, 06:39 PM
Find
Som1Lse Offline
Member

Posts: 183
Threads: 9
Joined: Sep 2010
Reputation: 0
#6
RE: Help with Grunt

(02-25-2011, 06:39 PM)nkmol Wrote: i don't know how the smoke effect really works.
That would be FadeEnemyToSmoke(string& asName, bool abPlaySound);

void OnEnter()
AddEntityCollideCallback("servant_grunt_1", "ScriptArea_1", "GruntGone", true, 1);

void GruntGone(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke("servant_grunt_1",true);
}
02-25-2011, 07:05 PM
Website Find
xToxic Offline
Junior Member

Posts: 8
Threads: 1
Joined: Feb 2011
Reputation: 0
#7
RE: Help with Grunt

None of this works, All of this gives me errors! x.x
02-25-2011, 07:11 PM
Find
nkmol Offline
Senior Member

Posts: 252
Threads: 19
Joined: Feb 2011
Reputation: 4
#8
RE: Help with Grunt

(02-25-2011, 07:11 PM)xToxic Wrote: None of this works, All of this gives me errors! x.x

please give let us see the error Tongue
02-25-2011, 07:30 PM
Find
xToxic Offline
Junior Member

Posts: 8
Threads: 1
Joined: Feb 2011
Reputation: 0
#9
RE: Help with Grunt

FATAL ERROR: Could not load script file 'custom_stories/TEST/custom_stories/maps/part2.hps'!
main (164, 1) : ERR : Expected ',' or ';'
main (171, 1) : ERR : Unexpected token '{'
02-25-2011, 07:33 PM
Find
Ongka Offline
Member

Posts: 225
Threads: 3
Joined: Nov 2010
Reputation: 20
#10
RE: Help with Grunt

Send me the script and I'll fix that.

[Image: 18694.png]
02-25-2011, 07:49 PM
Find




Users browsing this thread: 1 Guest(s)