MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ObjSetFace

Function ObjSetFace

engine/Poseidon/Game/Commands/GameStateExtUi.cpp:237–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237GameValue ObjSetFace(const GameState* state, GameValuePar oper1, GameValuePar oper2)
238{
239 Object* obj1 = GetObject(oper1);
240 if (!obj1)
241 {
242 return NOTHING;
243 }
244
245 Man* soldier = dyn_cast<Man>(obj1);
246 if (!soldier)
247 {
248 return NOTHING;
249 }
250
251 GameStringType name = oper2;
252 soldier->SetFace(name);
253 return NOTHING;
254}
255
256GameValue ObjSetMimic(const GameState* state, GameValuePar oper1, GameValuePar oper2)
257{

Callers

nothing calls this directly

Calls 2

GetObjectFunction · 0.70
SetFaceMethod · 0.45

Tested by

no test coverage detected