예제 #1
0
void hook_DMActivity_RunScript(CVirtualMachine *pVM, CExoString *pScript, unsigned long TargetOID, int arg) {
    if(TargetOID > 0) {
        snprintf(dmactions.sParam1, 32, "%s", pScript->text);
        if(!dmactions.FireAction(TargetOID, DM_ACTION_RUNSCRIPT)) {
            CVirtualMachine__RunScript(pVM, pScript, TargetOID, arg);
        }
    }
}
예제 #2
0
int CVirtualMachine_s::Runscript(CExoString *ScriptName, nwn_objid_t OBJECT_SELF, int a4) {
	return CVirtualMachine__RunScript(this, ScriptName, OBJECT_SELF, a4);
}