Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] obstacle problem
#1
Hi
I am trying to make an obstacle in stage mod. It has itr like stone or box so you cant walk through it. It also has itr that can hit only balls or weapons. When I hit the obstacle with a ball its destroyed(the ball) but when an enemy hits the obstacle with a ball the ball stops moving forward but is not destroyed. I would like the opponents ball to be destroyed too or to fly through the obstacle. I tried many times but wasnt able to figure it out. I would be glad if someone could help me.
Thanks in advance.
Reply
Thanks given by:
#2
Sounds like a classic team-problem to me. There are 3 parties in stage-mode:
- Team 1 aka. the team you belong to
- Pink Team aka. enemies' team
- Independent
Now, how do you spawn independent objects? Easy; weapons belong to this team. They only change party when they've been picked up. Now, what you'll need to do is this: spawn this obstacle as a weapon (type 1, 2, 4, or 5). Then, both forces will be able to attack it.

Hope this helps.
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by:
#3
For the "can't pass through" effect use itr: kind 14 in all of the object's frames.
madness233 Wrote:but when an enemy hits the obstacle with a ball the ball stops moving forward but is not destroyed. I would like the opponents ball to be destroyed too or to fly through the obstacle.
Eh?
When the enemy's ball hits the obstacle it would stop moving, but when the opponent's ball hits the obstacle it gets destroyed or flies through.
Isn't "opponent" the synonym of "enemy"?
Or i didn't get this right?
Reply
Thanks given by:
#4
lol I didnt thought of making it a weapon thx. But how can I make that when it appears in stage mod it wont fall from the sky and dissappear when hitting the ground?
Reply
Thanks given by:
#5
perspective tags maybe? :)
its kinda hex thingy, search it on its section.
Reply
Thanks given by:
#6
@Up
uhm, no, thats a completly different story

@UpUp
just give it an ID over 200, then it won't fall from the sky in normal vs mode, and when a weapon hits the ground it goes to frame 60, so you just have to modifie that frame somehow and it should work

@UpUpUp
he didn't say "but" he said "I'd like to", :P read carefully
Reply
Thanks given by:
#7
Thx a lot
I hope it will work :)
Reply
Thanks given by:




Users browsing this thread: 6 Guest(s)