MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetPCScript

Method GetPCScript

Source/Game/level.cpp:620–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618}
619
620std::string Level::GetPCScript(const MovementObject* object) {
621 if (object) {
622 if (!object->GetPCObjectScript().empty()) {
623 return object->GetPCObjectScript();
624 } else if (!pc_script_.empty()) {
625 return pc_script_;
626 } else {
627 return "playercontrol.as";
628 }
629 } else {
630 return pc_script_.empty() ? DEFAULT_PLAYER_SCRIPT : pc_script_;
631 }
632}
633
634std::string Level::GetNPCScript(const MovementObject* object) {
635 if (object) {

Callers 7

SaveLevelMethod · 0.80
RecreateRiggedObjectMethod · 0.80
ChangeControlScriptMethod · 0.80
UpdateMethod · 0.80
DrawObjectInfoFlatFunction · 0.80
DrawImGuiFunction · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected