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
[HELP!!!!] Cave In
TheMadmaxster Offline
Junior Member

Posts: 18
Threads: 7
Joined: Jan 2012
Reputation: 0
#1
[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
Find
Wapez Offline
Senior Member

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#2
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?

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
10-12-2012, 09:58 PM
Find
TheMadmaxster Offline
Junior Member

Posts: 18
Threads: 7
Joined: Jan 2012
Reputation: 0
#3
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
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
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
Find
TheMadmaxster Offline
Junior Member

Posts: 18
Threads: 7
Joined: Jan 2012
Reputation: 0
#5
RE: [HELP!!!!] Cave In

(10-12-2012, 10:59 PM)beecake Wrote: Thanks SOOOOO Much!!
10-12-2012, 11:02 PM
Find
4WalledKid Offline
Member

Posts: 107
Threads: 23
Joined: Oct 2012
Reputation: 1
#6
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)
}

[Image: 4walledkidbanner_zps1514b7f6.png]
(This post was last modified: 10-12-2012, 11:11 PM by 4WalledKid.)
10-12-2012, 11:02 PM
Website Find




Users browsing this thread: 1 Guest(s)