Im back again with a message question :)
Posted: Tue Aug 03, 2004 5:17 pm
I have this script that fires a flak88. Got it from bdbodger I think. Well I have modified a bit and I am trying to get some instruction message to appear on the persons screen when that person and that person only is standing in the trigger.
What I have now just prints over and over while person is there.. I need a way to make this message only appear one time when the person is in the trigger, if person leaves, then I want it to appear again when they are in the trigger.
This just keeps on printing over and over, quite annoying. Help anyone ?
G3mInI
What I have now just prints over and over while person is there.. I need a way to make this message only appear one time when the person is in the trigger, if person leaves, then I want it to appear again when they are in the trigger.
Code: Select all
//**************************************************************
get_ready_to_fire:
for(local.playr=1;local.playr<= $player.size;local.playr++)
{
while($player[local.playr] istouching self)
{
local.instruction = $player[local.playr] waitthread instruct_use
local.instructed = 1
if($player[local.playr].useheld == 1)
{
local.shot_org = $player[local.playr] thread find_spot
self.target waitthread fire_cannon local.shot_org
local.shot_org immediateremove
wait 5
}
waitframe
}
waitframe
}
end
instruct_use:
if(local.instructed == NIL)
{
local.key = getboundkey1 "+use"
iprintlnbold_noloc (loc_convert_string "To fire the flak88 (press ") local.key (loc_convert_string " ).")
wait 1
iprintlnbold_noloc "Flak will fire wherever you are aimed at."
}
end
//**************************************************************G3mInI