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)
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#2
RE: ReplaceEntity function (AMFP patch)

For starters, it helps if you post your Code (Just the "ReplaceEntity" so we can check if you got errors)



Second, it does work.

void Script_Temp(string &in asTimer)
{
ReplaceEntity("Entity_ReplaceBarrel", "", "wood_box_small01_test", "wood_box_small01.ent", true);
}

The "Entity_ReplaceBarrel" should match the entity in the LEVEL EDITOR that you want to replace.

The second parameter should normally be nothing by default unless you got a specific one in mind.

The third is one is the name so you can call it back in code. (That works also)

The forth one is the ".ent" file you replace it with. You can browse to the folder with the object and copy the ".ent" name, or click a Entity in the Level Editor and get the name of the bottom of the property panel.
08-23-2014, 01:43 PM
Find


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



Users browsing this thread: 1 Guest(s)