TheMadmaxster
Junior Member
Posts: 18
Threads: 7
Joined: Jan 2012
Reputation:
0
|
[HELP!!!!] Cave In
Hi all!
I am building the same custom story I have been working on for the past week or so and I am at a cave-in part. I want to do one there is just one problem...
I dont know how... I've searched ALL over google and haven't found one thing. I want it where when the player walks through an area and the unactivated cave-ins become, well, a little more activated. I really need some help. Thanks!
-TheMadmaxster
|
|
10-12-2012, 09:36 PM |
|
Wapez
Senior Member
Posts: 360
Threads: 37
Joined: Mar 2012
Reputation:
19
|
RE: [HELP!!!!] Cave In
(10-12-2012, 09:36 PM)TheMadmaxster Wrote: Hi all!
I am building the same custom story I have been working on for the past week or so and I am at a cave-in part. I want to do one there is just one problem...
I dont know how... I've searched ALL over google and haven't found one thing. I want it where when the player walks through an area and the unactivated cave-ins become, well, a little more activated. I really need some help. Thanks!
-TheMadmaxster Can you please specify what you think should happen?
|
|
10-12-2012, 09:58 PM |
|
TheMadmaxster
Junior Member
Posts: 18
Threads: 7
Joined: Jan 2012
Reputation:
0
|
RE: [HELP!!!!] Cave In
(10-12-2012, 09:58 PM)Wapez Wrote: (10-12-2012, 09:36 PM)TheMadmaxster Wrote: Exacally what I said: a player walks into an area and the inactivated cave-in entity turns active.
|
|
10-12-2012, 10:46 PM |
|
FlawlessHappiness
Posting Freak
Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation:
171
|
RE: [HELP!!!!] Cave In
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Function", true, 1);
}
void Function(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("cavein_1", true);
}
Trying is the first step to success.
|
|
10-12-2012, 10:59 PM |
|
TheMadmaxster
Junior Member
Posts: 18
Threads: 7
Joined: Jan 2012
Reputation:
0
|
RE: [HELP!!!!] Cave In
(10-12-2012, 10:59 PM)beecake Wrote: Thanks SOOOOO Much!!
|
|
10-12-2012, 11:02 PM |
|
4WalledKid
Member
Posts: 107
Threads: 23
Joined: Oct 2012
Reputation:
1
|
RE: [HELP!!!!] Cave In
Use this and replace where needed:
void OnStart()
{
AddEntityCollideCallback(" Player" , "WRITE HERE THE NAME OF YOUR AREA", "SetActive", true, 1);
}
void SetActive(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("WRITE HERE THE NAME OF YOUR ENTITY", true)
}
(This post was last modified: 10-12-2012, 11:11 PM by 4WalledKid.)
|
|
10-12-2012, 11:02 PM |
|
|