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
AddEntityCollideCallback FAIL
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#3
RE: AddEntityCollideCallback FAIL

(10-29-2011, 10:35 PM)Victor Wrote: Every single time I try to script the "AddEntityCollideCallback" thingy, NOTHING HAPPENS. So, I'm finally asking for help. I've put the area in the level editor, I scripted just like in the wiki tutorials, and I'm sure the names are correct. I don't know why i can't make this ship work! Won't you please, please help me?

This is the part of the .hps script that matters:

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "bottlescare", "BottleFunc1", true, 1);
}

void BottleFunc1()
{
AddPropForce("wine01_1", -8.738, 0.945, -8.775, "world");
SetSwingDoorClosed("mansion_1", true, true);
PlaySoundAtEntity("", "general_thunder8", "Player", 0, false);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(7.0f, true);
}

And, as I said, the area is there. With the same name. So is the bottle. And the door. And all.
I need somebody, help!
You have decimals on the "AddPropForce" event, you would probably need to put an f on the end of each float.

e.g: AddPropForce("wine01_1", -8.738f, 0.945f, -8.775f, "world");


(This post was last modified: 10-30-2011, 12:06 AM by flamez3.)
10-30-2011, 12:06 AM
Find


Messages In This Thread
AddEntityCollideCallback FAIL - by Victor - 10-29-2011, 10:35 PM
RE: AddEntityCollideCallback FAIL - by devin413 - 10-29-2011, 11:31 PM
RE: AddEntityCollideCallback FAIL - by Victor - 10-30-2011, 12:09 AM
RE: AddEntityCollideCallback FAIL - by flamez3 - 10-30-2011, 12:32 AM
RE: AddEntityCollideCallback FAIL - by Victor - 10-30-2011, 01:52 AM
RE: AddEntityCollideCallback FAIL - by flamez3 - 10-30-2011, 12:06 AM
RE: AddEntityCollideCallback FAIL - by Apjjm - 10-30-2011, 03:36 AM
RE: AddEntityCollideCallback FAIL - by flamez3 - 10-30-2011, 03:51 AM
RE: AddEntityCollideCallback FAIL - by Victor - 10-30-2011, 02:13 PM
RE: AddEntityCollideCallback FAIL - by flamez3 - 10-31-2011, 01:14 AM
RE: AddEntityCollideCallback FAIL - by devin413 - 10-30-2011, 02:18 AM
RE: AddEntityCollideCallback FAIL - by MrBigzy - 10-30-2011, 03:00 AM
RE: AddEntityCollideCallback FAIL - by Victor - 10-30-2011, 03:13 AM
RE: AddEntityCollideCallback FAIL - by Laurensman - 11-01-2011, 11:37 PM



Users browsing this thread: 1 Guest(s)