Knusper.
Member
Posts: 58
Threads: 7
Joined: Feb 2013
Reputation:
2
|
RE: check if active/ string to int
At
void InArea(string &in asParent, string &in asChild, int alState)
{
string areanumber1 = StringSub(asChild, 11, 2);
if (Slender_1active)
{
Here
IsInArea = true;
LastArea = areanumber1;
AddTimer("Dead", 3, "Dead");
}
}
I made a debug message at the point i marked.
But it was never shown.
There is "if (Slender_1active)", and the area to set the entitiy active is right at the start, that the model is surely active.
edit:
void Slender1 (string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Slender_1", true);
Slender_1active = (alState == 1);
}
There i have a question:
Slender_1active = (alState == 1);
Does that mean that Slender_1active = true or false?
Or is that completely wrong?
No one knows, how "I" goes.
(This post was last modified: 03-24-2013, 09:21 PM by Knusper..)
|
|
03-24-2013, 08:51 PM |
|