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
ReplaceEntity function (AMFP patch)
MrBehemoth Offline
Senior Member

Posts: 408
Threads: 19
Joined: Feb 2014
Reputation: 40
#3
RE: ReplaceEntity function (AMFP patch)

Thanks Rapture. The issue is with my entities, which are unusual.

(08-23-2014, 01:43 PM)Rapture Wrote: For starters, it helps if you post your Code (Just the "ReplaceEntity" so we can check if you got errors)

Totally understand, but I didn't post it because I'm sure there's no errors there. Tongue

ReplaceEntity("CompScreen_Back", "", "CompScreen_Back", "blackaether/entities/computer/mail_0.ent", true);

// also tried
ReplaceEntity("CompScreen_Back", "", "CompScreen_Back", "mail_0.ent", true);
// and
ReplaceEntity("CompScreen_Back", "", "CompScreen_Back1", "blackaether/entities/computer/mail_0.ent", true);
// in case the issue was the new ent having the same name, plus various other things

Anyway, I think I know what the problem is - it's to do with the entities not containing any bodies, so even having an empty string as the 2nd parameter leaves the engine not knowing where to place the new entity. My real question wasn't "why isn't this working?" but rather "does this beta function definitely work?" and you answered that! Thanks! Smile

08-23-2014, 01:59 PM
Find


Messages In This Thread
RE: ReplaceEntity function (AMFP patch) - by MrBehemoth - 08-23-2014, 01:59 PM



Users browsing this thread: 1 Guest(s)