spectate.wrf:
Code: Select all
directory "multiplay/maps/4c-INSERTMAPNAMEHERE"
file SCRIPT "spectate.slo"
file SCRIPTVAL "spectate.vlo"
Code: Select all
script "spectate.slo"
run
{
command STRUCTURESTAT "A0CommandCentre"
satlink STRUCTURESTAT "A0Sat-linkCentre"
}
Code: Select all
private STRUCTURESTAT command,satlink;
trigger spectateTr(every, 10);
event spectateEv(spectateTr)
{
if ( getStructure(satlink , 2) == NULLOBJECT ) {
addStructure(satlink, 2, 5*128, 6*128);
}
if ( getStructure(command , 2) == NULLOBJECT ) {
addStructure(command, 2, 4*128, 8*128);
}
if ( getStructure(satlink , 3) == NULLOBJECT ) {
addStructure(satlink, 3, 58*128, 121*128);
}
if ( getStructure(command , 3) == NULLOBJECT ) {
addStructure(command, 3, 59*128, 119*128);
}
}
Even though the structures are created, players don't seem to benefit from it. The minimap doesn't appear, and the map doesn't get revealed, and they can't even be demolished by your truck. I'm sure the buildings do belong to the players i intended them to belong to.