Hi,
I'm making a mod and i'm wondering how I can fill the entire map with a physical zone using code. I already have this:
function servercmdspace() {
// Turn gravity off for a massive part of the map
%zoneShape = "0.0 0.0 0.0 1.0 0.0 0.0 0.0 -1.0 0.0 0.0 0.0 1.0";
%SBphys = new PhysicalZone()
{
position = "0 0 0";
velocityMod = "0";
gravityMod = "0";
extraDrag = "0";
isWater = "0";
waterViscosity = "40";
waterDensity = "1";
waterColor = "0.200000 0.600000 0.600000 0.000000";
appliedForce = 0;
scale = "100 100 100";
polyhedron = %zoneShape;
};
missionCleanup.add(%SBphys);
$spacePhysics = %SBphys;
if(isObject(%SBphys)) {
talk("Physical Zone creation successful.");
} else {
talk("Physical Zone creation failed!");
}
}
This is a test script for the mod. I have found that:
1. The zone never works if you set it's scale above 100
2. The zone almost never works anyway
3. When the zone does work, it stops working when respawning
And also, 100 is not infinite. So I was wondering how I could get it to cover the entire map, like in the old slate space. Help is apreciated.