HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: [Resolved] Disable / Turn Off the Defualt Swimming Behavior  (Read 2515 times)

OuterNet

  • General Accounts
  • *
  • Posts: 44
    • View Profile

I am curious, as I cannot find it.  But how would one turn off the swimming feature?  For example, my worlds are islands, and we do not want players to swim the oceans.  Rivers are fine...where can I find this to turn it off...
« Last Edit: Nov 01, 12, 11:30:58 AM by HE-Cooper »
Logged
AKA:  SpiritWebb on other forums!
Project:  OuterNet * Virtual Worlds

http://www.facebook.com/OuterNet.VirtualWorlds
http://www.linkedin.com/in/tadrensel

HE-JAY

  • HeroEngine
  • *****
  • Posts: 122
    • View Profile
Re: Swimming
« Reply #1 on: Sep 30, 11, 10:10:12 AM »

Swimming is controlled by a player's "character controller" (http://hewiki.heroengine.com/wiki/Advanced_Customizable_Character_Controller). Depending upon the behavior you'd like to see (do they 'bump into an invisible wall' when they hit the water? do they sink?), you'll want to modify the controller to remove or alter the default behavior. Search the HeroEngine_ACCControllerClassMethods script for 'swim' and you'll be on the right track.
Logged

OuterNet

  • General Accounts
  • *
  • Posts: 44
    • View Profile
Re: Swimming
« Reply #2 on: Sep 30, 11, 03:39:53 PM »

Thanks...
Logged
AKA:  SpiritWebb on other forums!
Project:  OuterNet * Virtual Worlds

http://www.facebook.com/OuterNet.VirtualWorlds
http://www.linkedin.com/in/tadrensel

WolfDreamer

  • General Accounts
  • *
  • Posts: 9
  • Please work out this time. So many other engines..
    • View Profile
    • Be wary of giant raccoons.  May the penguins save us all.
Re: Swimming
« Reply #3 on: Oct 01, 11, 01:21:47 PM »

http://hewiki.heroengine.com/wiki/Character_Behave_Commands shows how to do it.

http://hewiki.heroengine.com/wiki/Enumeration might be useful also, depending on how you do things.  Can they swim across rivers and ponds, and just not the ocean, or no water at all?  If the stream only looks waste deep, no reason not to be able to walk across it.

ced "water_states"; "crossable" "not_crossable"
Logged
The last sane human being in a world gone mad.

OuterNet

  • General Accounts
  • *
  • Posts: 44
    • View Profile
Re: Swimming
« Reply #4 on: Oct 02, 11, 07:48:53 PM »

Just the ocean.  Rivers are deep enough to swim, but because the land is an island, and the water goes to edge of map, I want the ocean "non-swimmable" so they cannot get to the edge of the map. 
Logged
AKA:  SpiritWebb on other forums!
Project:  OuterNet * Virtual Worlds

http://www.facebook.com/OuterNet.VirtualWorlds
http://www.linkedin.com/in/tadrensel