The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
ReplaceEntity function (AMFP patch)

Patrik Wrote:
void ReplaceEntity(string &in asName, string &in asBodyName, string &in asNewEntityName, string &in asNewEntityFile, bool abFullGameSave)

Removes the specified entity and places a new entity at its location.

asName- the name of the entity that should be replaced.
asBodyName- name of the body in the entity to place the new entity at. If "", the first body in the entity will be used.
asNewEntityName- name of the entity that should be created.
asNewEntityFile- .ent file that the new entitiy should be created from.
abFullGameSave- if ALL properties should be saved for the created entity

Has anyone had any trouble with this function from the beta AMFP patch? Whatever parameters I use cause a crash. I can achieve the same effect using multiple entities, but swapping them in would be ideal.

Just wondering if my problem is (a) because the function isn't fully implemented/debugged or (b) something specific to my entities/script.

Cheers!

08-23-2014, 11:36 AM
Find


Messages In This Thread
ReplaceEntity function (AMFP patch) - by MrBehemoth - 08-23-2014, 11:36 AM



Users browsing this thread: 2 Guest(s)