mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-06 10:44:08 +00:00
@@ -1788,6 +1788,7 @@ void Entity::HandleTriggerCommand(std::string id, std::string target, std::strin
|
||||
else if (argArray[0] == "repulse") effectType = 2;
|
||||
else if (argArray[0] == "gravity") effectType = 3;
|
||||
else if (argArray[0] == "friction") effectType = 4;
|
||||
|
||||
phanPhys->SetEffectType(effectType);
|
||||
phanPhys->SetDirectionalMultiplier(std::stof(argArray[1]));
|
||||
if (argArray.size() > 4) {
|
||||
@@ -1801,6 +1802,10 @@ void Entity::HandleTriggerCommand(std::string id, std::string target, std::strin
|
||||
phanPhys->SetMin(std::stoi(argArray[6]));
|
||||
phanPhys->SetMax(std::stoi(argArray[7]));
|
||||
}
|
||||
|
||||
if (target == "self") {
|
||||
EntityManager::Instance()->ConstructEntity(this);
|
||||
}
|
||||
}
|
||||
else if (id == "updateMission") {
|
||||
CDMissionTasksTable* missionTasksTable = CDClientManager::Instance()->GetTable<CDMissionTasksTable>("MissionTasks");
|
||||
|
Reference in New Issue
Block a user