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
How to do so Grunts poofs
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#11
RE: How to do so Grunts poofs

(06-12-2012, 07:08 PM)putty992 Wrote: Can just u guys stops fighting eachother and help me instead or u can fight in pm or something...


How should I write after this ?


void OnStart()
{
AddEntityCollideCallback("Player", "TeleportScript", "NailThatSucker", true, 1);
AddEntityCollideCallback("Player", "TeleportScript_2", "NailThatSucker_1", true, 1);

}


void NailThatSucker_1(string& asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportedNakedGuy_2", true);
AddPropForce("TeleportedNakedGuy_2", -20000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportedNakedGuy_2", 0, false);
}

void NailThatSucker(string& asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportedNakedGuy", true);
AddPropForce("TeleportedNakedGuy", -30000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportedNakedGuy", 0, false);
}




thats my script 2 teleporting naked guys that works and i want a third one Smile
You just copy them again...

06-12-2012, 07:11 PM
Find
putty992 Offline
Junior Member

Posts: 10
Threads: 4
Joined: Jun 2012
Reputation: 0
#12
RE: How to do so Grunts poofs

getting up FATAL ERROR

main (46,1) :ERR :Unexpected end of file


void OnStart()
{
AddEntityCollideCallback("Player", "TeleportScript", "NailThatSucker", true, 1);
AddEntityCollideCallback("Player", "TeleportScript_2", "NailThatSucker_1", true, 1);
AddEntityCollideCallback("Player", "TeleportScript_3", "NailThatSucker_2", true, 1);
AddEntityCollideCallback("Player", "TeleportScript_4", "NailThatSucker_3", true, 1);

}


void NailThatSucker_1(string& asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportedNakedGuy_2", true);
AddPropForce("TeleportedNakedGuy_2", -20000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportedNakedGuy_2", 0, false);
}

void NailThatSucker(string& asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportedNakedGuy", true);
AddPropForce("TeleportedNakedGuy", -30000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportedNakedGuy", 0, false);'
}

void NailThatSucker_2(string& asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportedNakedGuy_3", true);
AddPropForce("TeleportedNakedGuy_3", -20000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportedNakedGuy_3", 0, false);
}

void NailThatSucker_3(string& asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportedNakedGuy_4", true);
AddPropForce("TeleportedNakedGuy_4",0, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportedNakedGuy_4", 0, false);
}
06-12-2012, 08:59 PM
Find
imgoneimdead Offline
Señor Member

Posts: 416
Threads: 23
Joined: Oct 2011
Reputation: 10
#13
RE: How to do so Grunts poofs

Isn't there a little option In the simple menu for hallucination?
06-12-2012, 09:02 PM
Find
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#14
RE: How to do so Grunts poofs

(06-12-2012, 09:02 PM)Dagrocks Wrote: Isn't there a little option In the simple menu for hallucination?
The hallucination is already fixed.

06-12-2012, 09:03 PM
Find
putty992 Offline
Junior Member

Posts: 10
Threads: 4
Joined: Jun 2012
Reputation: 0
#15
RE: How to do so Grunts poofs

datguy5 : I just keep getting up FATAL ERROR Confused
06-12-2012, 09:09 PM
Find
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#16
RE: How to do so Grunts poofs

Try changing the "world" into "World" in the addpropforce.

06-12-2012, 09:43 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#17
RE: How to do so Grunts poofs

He has an apostrophe at the end of PlaySoundAtEntity in NailThatSucker.

Tutorials: From Noob to Pro
06-12-2012, 09:52 PM
Website Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#18
RE: How to do so Grunts poofs

Isn't "(string& asParent, string &in asChild, int alStates)" wrong? Or does that even matter?

Shouldn't it be:

(string &in asParent, string &in asChild, int alStates)

"Help me Your Computer, you are my only hope!" -Princess Leia

I rate it 3 memes.
06-12-2012, 10:06 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#19
RE: How to do so Grunts poofs

(06-12-2012, 10:06 PM)andyrockin123 Wrote: Isn't "(string& asParent, string &in asChild, int alStates)" wrong? Or does that even matter?

in (or out or inout) is not required by the syntax of the AngelScript script engine. It will compile safely with or without them. The callback should (at least, therefore, in theory) also be found by signature by the engine and called.

Tutorials: From Noob to Pro
06-12-2012, 10:13 PM
Website Find




Users browsing this thread: 3 Guest(s)