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

Author Topic: States System  (Read 454 times)

Thazager

  • General Accounts
  • *
  • Posts: 1128
  • Never stop learning
    • View Profile
    • Heroes and Villains MMORPG
States System
« on: Aug 04, 17, 09:06:56 PM »

I have been working with the States System and had a question, which might be obvious to someone, or someone else might have already got this part completed.

This turns objects into Stateful Objects, that can move like doors.

http://hewiki.heroengine.com/wiki/States_system

at the bottom of the page is the script to use, with 2 lines that had variables that were not included in the script - switchID and CLIENT. I am guessing that client is the players "accountID", sent in with the noderef for aDoor. But what is the switchID?


  // Add actions to actionlists
  var openTransform = $STATES._StatesObjectCreateStateActionTransform( "_areaStates", switchID, "0,0,0", "-45,0,0", "0,0,0", 0:00:05.000, CLIENT )
  var closeTransForm = $STATES._StatesObjectCreateStateActionTransform( "_areaStates", switchID, "0,0,0", "0,0,0", "0,0,0", 0:00:05.000, CLIENT )
Logged

Thazager

  • General Accounts
  • *
  • Posts: 1128
  • Never stop learning
    • View Profile
    • Heroes and Villains MMORPG
Re: States System
« Reply #1 on: Aug 04, 17, 09:54:03 PM »

The click seems to work in 1 direction (open doors), but errors in the other direction: (close doors)

Server Script Error
Area: 9223372056307022385 Instance: 3
 [citytest] SCRIPT ERROR: Exceeded 10 calls from C++ to HeroScript without returning
Time:08/05/2017 02:48:49 UTC
Call trace:
starting method/function OBSDATADECAYTIMER_ONSTART
starting me[id=9223372115851064943 class=eventObject,obsDataDecay]

is this fixable?

Edit:
This seems to be a temp error.
« Last Edit: Aug 04, 17, 10:44:14 PM by Thazager »
Logged