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
Script Areas
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
#7
RE: Script Areas

You need to put 2 script areas: when you collide with the first one, it will activate the second one. But if you want it to activate when you pick up a note, then you will only need 1 script area.
Use AddEntityCollideCallback making the entity Player and the entity it collides with the name of the note. Use OnPickup as the function. Place the script area that will trigger your earthquake where you'd like it and make sure it's inactive. Under the AddEntityCollideCallback mentioned above, use SetEntityActive with the name of your script area. Now you just have to make an AddEntityCollideCallback for the now active script area. Smile if you're confused tell me, I'll fire up my computer and make the whole code for you. (I'm using mobile and my memory)
P.S. I worked with JetlinerX to create that scare you're talking about. Smile I also did the door explode in your face scare with him.

Ba-da bing, ba-da boom.
(This post was last modified: 08-28-2011, 02:05 PM by JenniferOrange.)
08-28-2011, 02:04 PM
Find


Messages In This Thread
Script Areas - by ZRPT - 08-28-2011, 07:28 AM
RE: Script Areas - by GreyFox - 08-28-2011, 07:55 AM
RE: Script Areas - by ZRPT - 08-28-2011, 08:04 AM
RE: Script Areas - by Obliviator27 - 08-28-2011, 08:12 AM
RE: Script Areas - by ZRPT - 08-28-2011, 08:27 AM
RE: Script Areas - by MegaScience - 08-28-2011, 01:11 PM
RE: Script Areas - by JenniferOrange - 08-28-2011, 02:04 PM
RE: Script Areas - by MegaScience - 08-28-2011, 02:18 PM
RE: Script Areas - by JenniferOrange - 08-28-2011, 02:31 PM
RE: Script Areas - by MegaScience - 08-28-2011, 03:06 PM
RE: Script Areas - by JetlinerX - 08-28-2011, 04:51 PM
RE: Script Areas - by MegaScience - 08-28-2011, 05:26 PM
RE: Script Areas - by JetlinerX - 08-28-2011, 06:10 PM
RE: Script Areas - by MegaScience - 08-28-2011, 06:12 PM
RE: Script Areas - by ZRPT - 08-29-2011, 03:08 PM



Users browsing this thread: 3 Guest(s)