View unanswered posts | View active topics It is currently Thu Jan 09, 2025 10:20 pm



Reply to topic  [ 33 posts ]  Go to page Previous  1, 2, 3
 UPDATE, still need help spawning ACrab, need lua help. 
Author Message
User avatar

Joined: Sat Nov 18, 2006 8:11 pm
Posts: 267
Reply with quote
Post Re: UPDATE, still need help spawning ACrab, need lua help.
Geti wrote:
http://pastebin.com/m6c13c465
just made the box bigger, added an if to check if the parent existed or not, and loved the addition of grif's break.
edit: missed a comment.


Awesome, thanks.

Also, I was wondering if I could get some help with one last thing. Could you put in a simple check to see if there is an enemy brain on the map, and if there ISN'T to set the drone to AIMode 2, but if there IS an enemy brain on the map to set the drone to AImode 4? And could you make it so the player cannot control the drone?

I would really appreciate it :D


Mon Aug 24, 2009 7:57 pm
Profile WWW
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: UPDATE, still need help spawning ACrab, need lua help.
brainhunt is hardcoded to look for the player's brain, i think.
you could add something like
Code:
if self:IsPlayerControlled then
self:GetController():SetState(whatever change actor is, true)
end
to prevent control.


Mon Aug 24, 2009 9:56 pm
Profile WWW
User avatar

Joined: Sat Nov 18, 2006 8:11 pm
Posts: 267
Reply with quote
Post Re: UPDATE, still need help spawning ACrab, need lua help.
Geti wrote:
brainhunt is hardcoded to look for the player's brain, i think.
you could add something like
Code:
if self:IsPlayerControlled then
self:GetController():SetState(whatever change actor is, true)
end
to prevent control.


Brain hunt works for enemy brains too. I tested it out on dummy assault with my early TDExplosive spawning method. I planted a drone on top of the base and it fought it's way down to the brain room(until it fell down a pit it couldn't get up from) And there is of course no chance it was hunting my brain. which was on the opposite side of the map. It walked very clearly AWAY from my brain when it could easily have walked towards it.


Mon Aug 24, 2009 10:13 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 33 posts ]  Go to page Previous  1, 2, 3

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.037s | 13 Queries | GZIP : Off ]