Datguy5
Senior Member
Posts: 629
Threads: 25
Joined: Dec 2011
Reputation:
12
|
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 You just copy them again...
|
|
06-12-2012, 07:11 PM |
|
putty992
Junior Member
Posts: 10
Threads: 4
Joined: Jun 2012
Reputation:
0
|
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 |
|
imgoneimdead
Señor Member
Posts: 416
Threads: 23
Joined: Oct 2011
Reputation:
10
|
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 |
|
Datguy5
Senior Member
Posts: 629
Threads: 25
Joined: Dec 2011
Reputation:
12
|
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 |
|
putty992
Junior Member
Posts: 10
Threads: 4
Joined: Jun 2012
Reputation:
0
|
RE: How to do so Grunts poofs
datguy5 : I just keep getting up FATAL ERROR
|
|
06-12-2012, 09:09 PM |
|
Datguy5
Senior Member
Posts: 629
Threads: 25
Joined: Dec 2011
Reputation:
12
|
RE: How to do so Grunts poofs
Try changing the "world" into "World" in the addpropforce.
|
|
06-12-2012, 09:43 PM |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
RE: How to do so Grunts poofs
He has an apostrophe at the end of PlaySoundAtEntity in NailThatSucker.
|
|
06-12-2012, 09:52 PM |
|
Adny
Posting Freak
Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation:
173
|
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 |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
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.
|
|
06-12-2012, 10:13 PM |
|
|