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
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#2
RE: Script Areas

You would make a script area and add this to your script

AddEntityCollideCallback("Player", "ScriptName", "MyFunc", true, -1);

Player= Means when the Player Collides with the trigger
ScriptName= is what you named the Script Area In the Editor
MyFunc= Could be named anything but this will be used for the syntax
true= It deletes when you go through it once
-1= leaving so the opposite way I believe

alStates = 1 = only enter, -1 = only leave, 0 = both

Hopefully that'll Help

-Grey Fox

Current Project
Forgotten
08-28-2011, 07:55 AM
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)