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
Help getting 2 things not to work = MFP entities.
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#1
Help getting 2 things not to work = MFP entities.

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?
(This post was last modified: 12-15-2013, 06:00 PM by DnALANGE.)
12-15-2013, 05:59 PM
Find
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#2
RE: Help getting 2 things not to work = MFP entities.

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!

[Image: mZiYnxe.png]


12-15-2013, 07:49 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#3
RE: Help getting 2 things not to work = MFP entities.

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
12-15-2013, 07:57 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#4
RE: Help getting 2 things not to work = MFP entities.

But.. it DOES have to show up isnt it?
12-15-2013, 09:12 PM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#5
RE: Help getting 2 things not to work = MFP entities.

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.


Attached Files
.zip   cot.zip (Size: 34.93 KB / Downloads: 72)

12-16-2013, 12:29 AM
Find




Users browsing this thread: 1 Guest(s)