So, theres a function in the _Mod file that is this:
Code:
[[level.SpawnWeapon]] (Weapon[Name], where[Origin], [optional]angles);//Spawns a gun at the location specified.
But then I'm wondering, how would the real code look?
And another thing, is there any way to get it map specific?
- Heres the code if you need it for this question
Code:
SpawnWeapon(weapName, coords, angles)
{
point = spawn("script_origin", coords);
weap = SpawnWeap(weapName, point.origin);
if(isDefined(angles))
weap.angles = angles;
weap linkto( point );
return point;
}
SpawnWeap(weapName, coords)
{
return spawn( "weapon_" + weapName, coords + (0,0,5) );
}
Aaand thats it. Hope ya can help, would be awesome.