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 following statues
darksky Offline
Member

Posts: 52
Threads: 8
Joined: Nov 2012
Reputation: 2
#7
RE: following statues

name the areas area_0, area_1,...
in each collide callback, save the area number ( thats the one you are currently in). lets say : string lastArea

now check: if areanumber > lastArea, make the statue appear at area lastArea

if areanumber < lastArea ( meaning you are walking back, depends on how you place the areas), make the statue appear at area areanumber+1

something like

string lastArea ="";

void Func1(string &in asParent, string &in asChild, int alState)
{
string areanumber = StringSub(asChild, 5, 1);
if areanumber > lastArea) SetEntityActive("statue at area lastArea",true)
if (areanumber < lastArea) SetEntityActive("statue at area areanumber+1",true)

lastArea = areanumber;
}
(This post was last modified: 03-01-2013, 11:53 AM by darksky.)
03-01-2013, 11:48 AM
Find


Messages In This Thread
following statues - by Knusper. - 02-28-2013, 05:14 PM
RE: following statues - by Tiger - 02-28-2013, 06:01 PM
RE: following statues - by Knusper. - 02-28-2013, 06:09 PM
RE: following statues - by Tiger - 02-28-2013, 06:13 PM
RE: following statues - by Knusper. - 02-28-2013, 08:12 PM
RE: following statues - by Adrianis - 03-01-2013, 01:59 AM
RE: following statues - by darksky - 03-01-2013, 11:48 AM
RE: following statues - by Knusper. - 03-01-2013, 03:08 PM
RE: following statues - by darksky - 03-01-2013, 03:17 PM
RE: following statues - by Knusper. - 03-01-2013, 03:35 PM
RE: following statues - by Tiger - 03-01-2013, 03:44 PM
RE: following statues - by darksky - 03-01-2013, 03:59 PM
RE: following statues - by Knusper. - 03-01-2013, 04:03 PM
RE: following statues - by Adrianis - 03-01-2013, 06:49 PM
RE: following statues - by darksky - 03-01-2013, 04:22 PM
RE: following statues - by Knusper. - 03-02-2013, 11:46 AM
RE: following statues - by darksky - 03-02-2013, 06:09 PM
RE: following statues - by Knusper. - 03-03-2013, 09:13 AM
RE: following statues - by Tiger - 03-03-2013, 10:09 AM



Users browsing this thread: 1 Guest(s)