MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / add_cam_effector

Function add_cam_effector

ogsr_engine/xrGame/level_script.cpp:576–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574
575#include "actoreffector.h"
576float add_cam_effector(LPCSTR fn, int id, bool cyclic, LPCSTR cb_func)
577{
578 CAnimatorCamEffectorScriptCB* e = xr_new<CAnimatorCamEffectorScriptCB>(cb_func);
579 e->SetType((ECamEffectorType)id);
580 e->SetCyclic(cyclic);
581 e->Start(fn);
582 Actor()->Cameras().AddCamEffector(e);
583 return e->GetAnimatorLength();
584}
585
586float add_cam_effector2(LPCSTR fn, int id, bool cyclic, LPCSTR cb_func)
587{

Callers

nothing calls this directly

Calls 6

ActorFunction · 0.85
SetTypeMethod · 0.80
AddCamEffectorMethod · 0.80
GetAnimatorLengthMethod · 0.80
SetCyclicMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected