Frictional Games Forum (read-only)
Help getting 2 things not to work = MFP entities. - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Help getting 2 things not to work = MFP entities. (/thread-24120.html)



Help getting 2 things not to work = MFP entities. - DnALANGE - 12-15-2013

Hey guys\girls!
I've got all working only 2 things i cant get to work..
really weird Tongue
-
The things are ;
1=COT {kidbed thingy}
2=Potflower {Mfp one}
-
It workes great in the editor..
but in game it doesnt seem to work,
BUT the "blockbox \ BODY works.. i can collide to it.
-
Anybody any ideas?
Maybe meshes?


RE: Help getting 2 things not to work = MFP entities. - Acies - 12-15-2013

I use the cot myself, not showing up. Some digging shows that it has animations.... Which would lead me to believe that the key to fixing it is running one of them.

Names (used in script, found in ModelEditor):
off
on
offtoon
ontooff

So, the animations are run through
PlayPropAnimation(string& asProp, string& asAnimation, float afFadeTime, bool abLoop, string& asCallback);
which you can put in your 'OnEnter'. Also I think that the last two ones 'offtoon' = OFF to ON and 'ontooff' = ON to OFF are transitional animations, meant to be run once when changing the bed from off/on. You can string them together by having the last part of the 'playanimation' command call upon the next animation being played (string& asCallback).

The on and off animation are most likely looped animations.

Good luck!


RE: Help getting 2 things not to work = MFP entities. - Statyk - 12-15-2013

I had to move another of your threads again Lange, can you please double check from now on? You should know the sub-forums by now =P


RE: Help getting 2 things not to work = MFP entities. - DnALANGE - 12-15-2013

But.. it DOES have to show up isnt it?


RE: Help getting 2 things not to work = MFP entities. - Daemian - 12-16-2013

Hey, I just tried to have a working version of this model.
The model is not connecting to the bodies for some reason.

So I did this version of the model in the old editor. It's visible in the new editor, I tested. (zip contains two files ABCcot.ent ABCcot.dae, it's all you need. )

Since it can't have a body, to make the player collide with it you can use a block box or use it as static object.

If you want the animations you should try Acies' method.