Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → How to check that player is seened by AI
How to check that player is seened by AI
2003-08-31, 9:19 AM #1
OK. There is cog description:

Stormtroops (basicly 3-4) should patrol building outdoor (4 ghosts) and when player go intro they see area (stormtroops get alerted then they start fire etd ai order) cog should fail level (jkendlevel(1[0?])). Someone can make such cog for me? (or write part how to check ai see player.

------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..
2003-08-31, 8:12 PM #2
The message was seen: or something.

Sorry I don't know, new comp - no datamaster.

------------------
Brutally honest since 1998
2003-09-02, 12:40 AM #3
Hi there [http://forums.massassi.net/html/smile.gif]

I've been wondering the same thing, but the sighted message is not the appropriate method for going about this... and neither is HasLOS() [http://forums.massassi.net/html/frown.gif]

I've tried a couple of things but so far I've run up against a brick wall... I've also tried the IsAITargetInSight() verb but that doesn't seem to want to work either...

In short, I'm stumped for the moment, but I'll post back if/when I find a solution/work-around fix [http://forums.massassi.net/html/wink.gif]

-Jackpot

------------------
Are you feeling lucky, cuz if you are, get your hands off me... ;)

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2003-09-02, 5:16 PM #4
you can check to see if an ai has seen you like this:
Code:
pulse:
     if(AiGetMode(ai_thing) & 0x400)
          {
          //-AI has a target do something...
          }
return;

it works as far as i know.

------------------
Famous last words - "It seemed like a good idea at the time."
Famous last words - "It seemed like a good idea at the time."
2003-09-03, 7:59 PM #5
I guess you could combine HasLOS, vectordist, and getthinglvec of AI to determine whether you're more than likely to be attacked.

------------------
Brutally honest since 1998
2003-09-04, 10:01 AM #6
result..
Code:
# Jedi Knight Missions Cog Script
#
# AImakealert.cog
#
# [EH_AceTFL]
#

symbols

message      startup                                                          
message      pulse

thing          enemy

thing          player                             local                         
sound        goalsound=Accomplish1.wav          local                         

end                                                                           

# ================================================================================

code

startup:
  
setpulse(1);
return;

# ................................................................................

pulse:
     if(AiGetMode(enemy) == 0x400)
          {          
Print("ble");
          }
return;
end

..wont work

------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..
2003-09-04, 10:28 AM #7
look at what i posted again.

its:
if(AiGetMode(ai_thing) & 0x400)
not:
if(AiGetMode(ai_thing) == 0x400)

fix that then it should work.

------------------
Famous last words - "It seemed like a good idea at the time."

[This message has been edited by DSLS_DeathSythe (edited September 04, 2003).]
Famous last words - "It seemed like a good idea at the time."
2003-09-05, 2:45 AM #8
this work similar to demaged:

------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..

↑ Up to the top!