Home   Help Search Login Register  

Author Topic: AI Mine  (Read 617 times)

0 Members and 1 Guest are viewing this topic.

minimilo

  • Guest
AI Mine
« on: 31 Dec 2004, 21:48:21 »
Can i create a simple AI mine using a trigger to simulate a simple artillery strike, i have one at the mo, but it doesnt activate in the conditions that i want it to

Dubieman

  • Guest
Re:AI Mine
« Reply #1 on: 31 Dec 2004, 22:20:08 »
Well make a small trigger and have activated by someone, then in the activation field put

mine1 = "Heat125" camcreate (getpos nameoftrigger)

and then name the trigger to. ;)

OR

I've tried using "this", but with mixed results.
mine1 = "Heat125" camcreate (getpos this)

Sometimes it works and somtimes it doesn't. Maybe its cause "this" is being used somewhere else... :P

EDIT: I should have clarified. The first way to do it is longer cause  you have to match the code with different trigger names and stuff, I did it once for a small 15 mine minefield, a little annoying. :P

The second way is less finger labor, but I dunno if it works. :-\
« Last Edit: 01 Jan 2005, 01:41:13 by GuiltyRoachKillar »

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:AI Mine
« Reply #2 on: 31 Dec 2004, 22:33:47 »
how about try insted of this

(getpos mine1)

Dubieman

  • Guest
Re:AI Mine
« Reply #3 on: 01 Jan 2005, 01:34:30 »
I don't think you can get the position of an object that hasn't been setpos'ed yet. Lemme see... :-\

Edit: Yeah, doesn't work. What do others do? :P
« Last Edit: 01 Jan 2005, 01:42:58 by GuiltyRoachKillar »

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:AI Mine
« Reply #4 on: 01 Jan 2005, 03:41:45 »
i beleive he meant having a mine object on the ground called mine1

Dubieman

  • Guest
Re:AI Mine
« Reply #5 on: 01 Jan 2005, 05:14:50 »
Lol, whoops. You're prolly right TriggerHappy.  :P

Its the New Years bug I swear... :P