Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 4 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Anyone need help?
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
RE: Anyone need help?

@WatzUpzPeepz

What is "DoorSlamArea" and "CollideDoorSlam"? are they some random names or some kind of function?

EDIT: nvm I made it work ^^. thanks!

btw!: How do i do so the door destroys when i enter the script?

[Image: 44917299.jpg]Dubstep <3
(This post was last modified: 05-23-2011, 08:53 PM by xtron.)
05-23-2011, 08:32 PM
Find Reply
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
RE: Anyone need help?

(05-23-2011, 08:08 PM)Simpanra Wrote: How do i make my player walk forward of their own accord WITHOUT the scripts from justine?

Perhaps make the floor move instead and to play the step sound every second or something?

So I take it the Justine walk script isn't working for you. :/
(05-23-2011, 08:32 PM)xtron Wrote: @WatzUpzPeepz

What is "DoorSlamArea" and "CollideDoorSlam"? are they some random names or some kind of function?

EDIT: nvm I made it work ^^. thanks!

btw!: How do i do so the door destroys when i enter the script?

Use this script command in a function when you want the door to break:

SetPropHealth("DoorName", -100);

(This post was last modified: 05-23-2011, 09:17 PM by Kyle.)
05-23-2011, 09:14 PM
Find Reply
Simpanra Offline
Senior Member

Posts: 314
Threads: 28
Joined: Mar 2011
Reputation: 0
RE: Anyone need help?

Yeah =/ It just crashes each time
05-23-2011, 09:45 PM
Find Reply
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
RE: Anyone need help?

Thanks Kyle but...I think that my map doesn't load my .HPS file.
I made a map named starter1.map and a starter1.hps then, when I was finish moding it I made a starter2.map and a starter2.hps but the custom story doesn't load my starter2.hps.
Anyone knows why this is happening?

btw: I want to make a separate function for the door destroying part. Do you know the syntax code etc for it?.

thanks

[Image: 44917299.jpg]Dubstep <3
(This post was last modified: 05-24-2011, 06:42 AM by xtron.)
05-24-2011, 06:39 AM
Find Reply
havis1337 Offline
Junior Member

Posts: 28
Threads: 6
Joined: May 2011
Reputation: 0
RE: Anyone need help?

I could use some help, i made a thread tho...but how do i make a bottle to be automatically thrown from a table to a wall?
05-24-2011, 08:50 PM
Find Reply
DannieWest Offline
Member

Posts: 156
Threads: 13
Joined: Apr 2011
Reputation: 0
RE: Anyone need help?

(05-24-2011, 08:50 PM)havis1337 Wrote: I could use some help, i made a thread tho...but how do i make a bottle to be automatically thrown from a table to a wall?

I'd say make a ScriptArea, AddEntityCollideCallback, and then use AddPropImpulse, so that when the player walks in to the area the bottle flies away! Then just experiment with the amount of force you use, depending on how fast you want the bottle to fly Smile
05-24-2011, 08:58 PM
Find Reply
Mooserider Offline
Member

Posts: 64
Threads: 11
Joined: Jan 2011
Reputation: 2
RE: Anyone need help?

I really need to know how to make a sort of continuous function - Because what I want is if at any time in the level the player's health drops below 100, a function is called. I know how I would use an if statement, I just need the function.Undecided

PS Sorry if this has already been asked, I haven't seen it anywhere.

Working on a FC: "Don't Let Go "
(This post was last modified: 05-26-2011, 08:27 AM by Mooserider.)
05-26-2011, 08:26 AM
Find Reply
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
RE: Anyone need help?

(05-26-2011, 08:26 AM)Mooserider Wrote: I really need to know how to make a sort of continuous function - Because what I want is if at any time in the level the player's health drops below 100, a function is called. I know how I would use an if statement, I just need the function.Undecided

PS Sorry if this has already been asked, I haven't seen it anywhere.

You have to remember that AngelScript works pretty much like C++.

In C++, you can make functions that have nothing in their parentheses and just call them all you want, when you want.

void OnStart()
{
     Function();
}
void Function()
{
     If (GetPlayerHealth() < 100)
     {
          [Put what you want to happen here]
          return;
     }
}

This should work.

05-26-2011, 11:00 AM
Find Reply
Mooserider Offline
Member

Posts: 64
Threads: 11
Joined: Jan 2011
Reputation: 2
RE: Anyone need help?

Ah, thanks a million Kyle.Big Grin

Working on a FC: "Don't Let Go "
05-26-2011, 11:38 AM
Find Reply
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
RE: Anyone need help?

(05-26-2011, 11:38 AM)Mooserider Wrote: Ah, thanks a million Kyle.Big Grin

You're welcome. Smile

*Insert Bump Here*

05-28-2011, 01:41 PM
Find Reply




Users browsing this thread: 2 Guest(s)