07-31-2013, 07:06 PM
How can I disable floors (planes)?
I want to make it so that you go in to the Area an than the floor will despawn. (The Plane).
Does anyone know of a script for this?
My Script: (Doesn't Work)
{
AddEntityCollideCallback ("Player", "bodenwegarea", "BodenDespawnt", true, 1);
}
void BodenDespawnt (string &in asParent, string &in asChild, int alState)
{
SetEntityCollide ("boden", false); (<- "boden" is the floor)
GiveSanityDamage (5.0f, true);
}
Please help. thank.
I want to make it so that you go in to the Area an than the floor will despawn. (The Plane).
Does anyone know of a script for this?
My Script: (Doesn't Work)
{
AddEntityCollideCallback ("Player", "bodenwegarea", "BodenDespawnt", true, 1);
}
void BodenDespawnt (string &in asParent, string &in asChild, int alState)
{
SetEntityCollide ("boden", false); (<- "boden" is the floor)
GiveSanityDamage (5.0f, true);
}
Please help. thank.