Home   Help Search Login Register  

Author Topic: Moving around fire!!!  (Read 560 times)

0 Members and 1 Guest are viewing this topic.

Ace Productions

  • Guest
Moving around fire!!!
« on: 11 Aug 2003, 21:24:16 »
Ok, it goes like this; I want to be able to move around the "CAT FIRE2" object underneath a units feet.
I've tried the following but no luck:

"CATFIRE2" SetPos [GetPos "soldier"]

I also added an action called "burn soldier" but how can I restrict it to happen only when I am in a radius less than 2 metres  from "soldier"?

Ah...last can the action "HIDE_BODY" be executed without any unit being near the body (i.e. after the soldier is burned to dissapear!).
 
Can anybody help me please!

Kaliyuga

  • Guest
Re:Moving around fire!!!
« Reply #1 on: 11 Aug 2003, 21:38:39 »
 1) what did you name the fire object in the editor? thats what you need to refer to when trying to move it around.

I aslo see you have quotes in your example syntax but they're not neccesary ;)

name the fire object:  catfire2  
name the soldier:    soldier

now... using

catfire2 setpos [getpos soldier]  

should work for you

2)  two triggers, repeatable:


first trigger:

condition: soldier distance catfire2 < 2
activation: actionid=soldier addaction["actiontext","actionscript"]


second trigger:

condition: soldier distance catfire2 < 2
activation: soldier removeaction actionid


3) No.. to the best of my knowledge only black ops can use "hide body"

but... you can use setpos to make the body "dissappear" into the ground.

soldier setpos [getpos soldier select 0, getpos soldier select 1,-3]

this will make the soldier go 3 meters underground, it will happen instantaneously so you if you wanted a more gradual approach you could make a script that moves the soldier underground slowly ;)

:cheers: :toocool:




Ace Productions

  • Guest
Re:Moving around fire!!!
« Reply #2 on: 12 Aug 2003, 00:02:31 »
My friend Kaliyuga thanks a lot for the help. With a lot of time spend on timing, the hiding body thing worked perfect! Thanks again.  ;)

There was a problem though with moving fire around. I received the following error:

"burn setpos [getpos z1]|#|;" Error 1 elements provided 3 expected

Where burn is the name of CAT FIRE2 and z1 the unit to be burned. As I can understand it requires X,Y,Z co-ordinates.

Any ideas?

Kaliyuga

  • Guest
Re:Moving around fire!!!
« Reply #3 on: 12 Aug 2003, 00:47:13 »
 you can try this:


burn setpos [getpos z1 select 0, getpos z1 select 1,0]

should work for you and you can adjust height of the fire by changing the 0 to higher/lower numbers

:cheers:

« Last Edit: 12 Aug 2003, 00:48:17 by Kaliyuga »

Ace Productions

  • Guest
Re:Moving around fire like a God!!!
« Reply #4 on: 12 Aug 2003, 07:13:25 »
Kaliyuga you are the best!  ;D

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Moving around fire!!!
« Reply #5 on: 12 Aug 2003, 09:49:33 »
or just simply  burn setpos getpos z1. if you put coordinates inside [] (an array) you'll have to give all the values. if you don't the game will get all the values by itself.
Not all is lost.

Ace Productions

  • Guest
Re:Moving around fire!!!
« Reply #6 on: 12 Aug 2003, 11:58:08 »
Artak you are perfectly right! Thanks a lot.  :)