• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How do I make boats don't collide? {preventing boats from colliding}

Status
Not open for further replies.
Level 2
Joined
Oct 12, 2008
Messages
19
I have made some quite small boats. The problem is that they collide as if they had there normal collision size. I have of course tried to lower the collision size (even to 0).
When they pass each other theres no problem, but when they turn or attack eachother on close range, they push each other away.
Plz help me
 
Level 7
Joined
Aug 29, 2007
Messages
336
Ah crap. Well I was in a hurry :p
In that case I think it's something to do with how the game is scripted and that it cannot be changed.
(But I am not sure of this, just what it seems like.)
 
Level 20
Joined
Jan 6, 2008
Messages
2,627
If you make them spawn to triggers you can do this:

Code:
Unit variable with Array 200?
  • For each integer 1 - (How many units you want) Integer A
    • Loop actions
      • Create 1 Boat
      • Set Boats[Integer A] Last created Unit
      • Set Collision off for Boats[Integer A]
  • Events
    • Unit Leaves a region
  • Conditions
    • Region equal to one over the whole water + cliffs
  • Actions
    • If then else Multiple
      • If
      • Then
        • Turn Collizion on for Triggering unit
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
yhea locust will make them unselectable but have you tried to make the selection circle smaller?

that is ART and it has nothing to do with "real body size" :hohum:

{EDIT}
Ghost(Visible)? But that way they'd all go the one into the other.

EDIT: Good ol' Slaydon, always with a trigger ready.

i agree with Reaper2008 but i saw one stupid think with ability ghost(visible)


it makes other units to go trough unit that has ghost(visible)
but the unit that has ghost(visible) cannot go trough them

is there any way to make it work like wind walk?
 
Last edited:
Level 2
Joined
Oct 12, 2008
Messages
19
This sounds nice. Will try it out. Btw, I do want them to have a collision size, I just don't want them to move away as they start shooting at eachother and crapz like that.
 
Level 2
Joined
Oct 12, 2008
Messages
19
Here is some information that might help you understand my problem.
A ship is built once a unit enters a specific region (entering unit will then disappear). This way there will be many ships. But they are built one by one; therefore, a loop won't be necessary. But if you want me to place them in a variable it must be as a unit group, because there's no specific number of how many ships it might be.
 
Level 2
Joined
Oct 12, 2008
Messages
19
in object editor there is a field 'Movement - Group Separation - Enabled '. Set it to false and that should the trick.

Sounds good. Will try it out.

{EDIT}
Can't find the 'Movement - Group Separation - Enabled '
Can't find anything to edit in "Object Manager".

Slaydons script didn't work. It doesn't work with: Unit - Turn collision for Ship Off
 
Last edited by a moderator:
Level 8
Joined
Dec 8, 2007
Messages
312
Object Manager?
I said Object Editor. Object Manager is something completely different.
Anyway, Ships have Movement fields like any normal unit. Maybe you got some strange WC3 version but you should find it near field that sets unit move speed, fly height and such things.
 
Status
Not open for further replies.
Top