Obj document.
Posted: Thu Nov 25, 2004 3:01 pm
Hi all ,
I cant make work this script below.
Some precisions before:
$sg_document is a script_object
$axis_view_map_trigger is a trigger_use wich setthread axis_view_map.
AxisHQ is a big trigger_multiple
i would like the player to momorise the map en run back to his spawn point to achieve the objective.Here is what i tried but nothing work .
thx for help
I cant make work this script below.
Some precisions before:
$sg_document is a script_object
$axis_view_map_trigger is a trigger_use wich setthread axis_view_map.
AxisHQ is a big trigger_multiple
i would like the player to momorise the map en run back to his spawn point to achieve the objective.Here is what i tried but nothing work .
Code: Select all
axis_view_map local.player:
while (local.player.dmteam != axis)
{
if ( (Isalive local.player) && (local.player.useheld == 1) && (local.player cansee $sg_document 60 80) )
if ( local.player.seenmap == 1 )
{
iprintln "You have memorised the document" local.player.dmteam
}
end
}
thread come_back_home
end
come_back_home:
self.seenMap = 1
while ( self != NULL )
{
if ( ! (Isalive self) )
{
iprintln "You've been mupped!"
self.seenMap = 0
end
}
if ( self.dmteam != "axis" )
{
iprintln "objective failed"
self.seenMap = 0
end
}
for (local.i = 1; local.i <= $AxisHQ.size; local.i++) {
if ( self isinside $AxisHQ[local.i] )
{
iprintln "Good job!!!!"
thread stargate_document_in_possession
end
}
}
wait 0.1
}
end
stargate_document_in_possession:
level.axis_obj++
thread check_endmatch
end
check_endmatch:
if (level.axis_obj == level.numobjectives)
teamwin axis
end