Ok I need to know how to add a compass not on the hud but a object in the game. and it has to work. is there a way?
water that kills.... not on contact but no air =u die. explain.
Compass
Moderator: Moderators
for the water, you could make a trigger under the water, so that the only way the player could touch it is with his head under water. then give the trigger a targetname in the editor and in script add this at the very very bottom of your script.
(this assumes the targetname of the trigger is "water")
(and that the game mode is sp)
and at the very top line of your script add this:
it's not fullproof, but its a start. 
(this assumes the targetname of the trigger is "water")
(and that the game mode is sp)
Code: Select all
drown:
level waittill prespawn
local.doomsday = 0
while (self != NULL)
{
wait 0.5
if ($player istouching self)
{
local.doomsday++ //add one to the doomsday clock
}
if (local.doomsday >= 20) //thats at least 10 seconds under water
{
$player normal_damage 5
}
}
endand at the very top line of your script add this:
Code: Select all
$water thread drownYou can make a compass in the game but how would you use it ? You can't pick it up and I don't think you could make a custom weapon for it to carry it around . In single player if you set an objective the hud compass can point to the current objective object you could put one at the north end of the map .
