(05-10-2015, 07:18 PM)FlawlessHappiness Wrote: If it's a custom wall, I recommend taking a look at other objects that can already be moved. Like the secret shelf door.
Or you could use my script for moving any entity with scripting:
http://www.frictionalgames.com/forum/thread-29844.html
I will try it, But I need a custom one because, Those shelf doesn't fit, It's like in temple, and then it is a little bit weird if you see a shelf standing in 1 of the X path xD
(05-10-2015, 07:18 PM)FlawlessHappiness Wrote: If it's a custom wall, I recommend taking a look at other objects that can already be moved. Like the secret shelf door.
Or you could use my script for moving any entity with scripting:
http://www.frictionalgames.com/forum/thread-29844.html
I get error if I try this :
void MoveWall(string &in asEntity, int alState)
{
if (alState == 1)
{
SetMoveObjectState("EgyptMove",1.0f);
MoveEntityToEntity("EgyptMove", "EgyptMove_End", 0.01f, 0.01f);
PlayGuiSound("quest_completed", 5);
return;
}
}
but MoveEntityToEntity("EgyptMove", "EgyptMove_End", 0.01f, 0.01f); meabs, that the wall EgyptMove, Moves UP to the EgyptMove_End (that is higher then the EgyptMove) Right?! I did this and I get error
INFO: Compiling void Movewall (string&in,int)
ERR: Not matching Signatures to : MoveEntityToEntity("String blabla", "stringblabla", cosnt float, const float);
I think the problem is this : (string &in asEntity, int alState)
That needs to be something diffirent? but what.. Couldn;t find it...