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
[Updated]Invisible AMFP meshes? (And Other Questions)
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#27
RE: Invisible AMFP meshes? (And Other Questions)

(07-23-2014, 08:06 PM)DeAngelo Wrote: Any tips on multi-story houses? I never made them in my first CS but now I'm trying to and finding that working on the first floor (Or ground floor if you're british) gets a bit hard once I've started working on the upper floors.
My CS is a multi-story mansion and I often encounter this. My solution is to just build the second floor ON THE SIDES.

(07-23-2014, 08:06 PM)DeAngelo Wrote: Is there a way to create an entity at another entity? I know you can create one at an area, but I want to have the player pick something up, then while they're carrying it, it breaks and some rats fall out of it and scurry off. Is this possible?

Well the object breaking and rats falling thing is a bit too far for me, but I'll try my best.
Spoiler below!

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""AreaAroundObject""SetVariable"true1);
}

void SetVariable(string &in asParentstring &in asChildint alState)
{
SetLocalVarInt("BottleDropInit"1);
AddTimer("Time"5.0f"BottleDropNow"); //Change 5.0f to how long you want the Player to hold the item before it breaks
}

void BottleDropNow(string &in asTimer)
{
ChangePlayerStateToNormal();
PlaceEntityAtEntity("Rats""Object""Object_Body"false);

NOTE: I'M NOT REALLY SURE WHETHER THIS WILL WORK OR NOT BECAUSE I NEVER USE ChangePlayerStateToNormal AND THE NEW FUNCTION PlaceEntityAtEntity BEFORE.


"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 07-24-2014, 03:12 AM by PutraenusAlivius.)
07-24-2014, 03:10 AM
Find


Messages In This Thread
RE: Invisible AMFP meshes? - by Artsy - 07-20-2014, 11:36 PM
RE: Invisible AMFP meshes? - by DeAngelo - 07-20-2014, 11:53 PM
RE: Invisible AMFP meshes? - by Daemian - 07-21-2014, 03:32 AM
RE: Invisible AMFP meshes? - by DeAngelo - 07-21-2014, 05:44 AM
RE: Invisible AMFP meshes? - by DeAngelo - 07-22-2014, 08:52 AM
RE: Invisible AMFP meshes? - by Mudbill - 07-22-2014, 11:00 AM
RE: Invisible AMFP meshes? - by Daemian - 07-22-2014, 07:49 PM
RE: Invisible AMFP meshes? - by DeAngelo - 07-22-2014, 08:02 PM
RE: Invisible AMFP meshes? - by Mudbill - 07-22-2014, 09:34 PM
RE: Invisible AMFP meshes? - by DeAngelo - 07-22-2014, 10:37 PM
RE: Invisible AMFP meshes? - by Daemian - 07-23-2014, 12:31 AM
RE: Invisible AMFP meshes? - by Mudbill - 07-23-2014, 01:11 AM
RE: Invisible AMFP meshes? (And Other Questions) - by PutraenusAlivius - 07-24-2014, 03:10 AM



Users browsing this thread: 3 Guest(s)