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 Help Problem with script
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#4
RE: Problem with script

One solution is to create a huge script area (make it big enough to cover the entire map) and call it "ScriptArea_WORLD". Then you can just create the following function:

bool GetEntityActive(string &in asEntity) { return GetEntitiesCollide(asEntity,"ScriptArea_WORLD"); }

Edit:
I'd also like to point out, that with boolean variables (true/false variables) you do not need to use ==.

E.g.
if( someVar == false && someOtherVar == true)

//Is Identical to writing:

if( !someVar && someOtherVar )
(This post was last modified: 09-04-2012, 05:01 PM by Apjjm.)
09-04-2012, 05:00 PM
Find


Messages In This Thread
Problem with script - by amusei - 09-04-2012, 06:16 AM
RE: Problem with script - by FlawlessHappiness - 09-04-2012, 07:08 AM
RE: Problem with script - by ferryadams10 - 09-04-2012, 01:13 PM
RE: Problem with script - by Apjjm - 09-04-2012, 05:00 PM
RE: Problem with script - by GoranGaming - 09-04-2012, 08:07 PM



Users browsing this thread: 1 Guest(s)