Hi, I wish to know a way to summon actors/entities like a health box or a Fiend via the ingame console or otherwise ingame.

/////// Spawns this monster type in front of player void() spawn_grunt = { local entity spawny; local vector pos; makevectors (self.v_angle); // makevectors (self.angles); pos = self.origin + v_forward * 177; // declare distance towards player here pos_z = self.origin_z + 25; // will drop to floor later when its a walking monster. Will fly when its a flying one spawny = spawn(); if (PM_InWall(spawny, pos)) // do checks if monster is spawned in walls / obstacles { centerprint (self, "Spawned monster is inside wall / obstacle"); remove (spawny); return; } if (!PM_TraceCheck(spawny, pos)) { centerprint (self, "Spawned monster is inside wall / obstacle"); remove (spawny); return; } setorigin (spawny, pos); spawny.angles_x = 0; // make him always look straight spawny.angles_y = self.angles_y + 180; // make him always look towards player spawny.angles_z = 0; spawny.do_not_replace_me = 1; // monster will not be replaced by other SMC monsters spawny.think = monster_army; spawny.nextthink = time + 0.5; };
Comment