1
GUI Creation / Re: Clean Engine CSS area - radio buttons?
« on: Mar 06, 13, 03:43:56 AM »
If i rigth undertand you need to dynamic create some button on the GUI form?
[hsl_debug] 9223372056476021763,4: SCRIPT[E_AiAgentClassMethods]: Already in combat, so we don't care.
function FigureOutMovement()
acct as NodeRef of Class E_playerAccount = GetAccountID()
char as NodeRef of Class E_playerCharacter = acct.GetMyCharacter()
if char.E_isDead
return
.
var behavior = "move"
var needtostop = true
if IsMovingForward()
behavior = behavior + " forward"
needtostop = false
else if GetCmdState("Movement","Backward")
behavior = behavior + " backward"
needtostop = false
.
if GetCmdState("Movement","Walk")
behavior = behavior + " walkonly"
else if GetCmdState("Movement","Sprint")
behavior = behavior + " sprintonly"
.
if $INPUT.InputGetLeftMostRecent()
if GetCmdState("Movement","Left")
behavior = behavior + " sidestepleft"
needtostop = false
.
else
if GetCmdState("Movement","Right")
behavior = behavior + " sidestepright"
needtostop = false
.
.
if (GetCmdState("Movement","JumpingEngaged"))
if Skippy:IsMe()
behavior = behavior + " jump .95"
else
behavior = behavior + " jump .45"
.
needtostop = false
.
if needtostop
me["behave"] = "move stop"
SetCmdState("Movement","MouseMovementEngaged", false)
else
me["behave"] = behavior
.
.
If still not working correctly, you can also open the GUI in the heroscript editor and check which class its set to on the top line. This info wont show up in the GUI editor.In what file?
You need to check in the Dom Editor if the replicated destination class is set to DM_PlayerAccount not E_PlayerAccount.
starting me[id=9223372056523021706 class=DM_PlayerAccount,HBNode,CharacterNode,_ACCControllerOwner]
Client Script Error
SCRIPT ERROR: Node 0 not found to call method GETMYCHARACTER
01/15/2013 22:32:29
Call trace:
Script Input_Movement line 173 me[9223372056523021706]
Script Input_Movement line 127 me[9223372056523021706]
starting method/function ONCMDSTOP
starting me[id=9223372056523021706 class=DM_PlayerAccount,HBNode,CharacterNode,_ACCControllerOwner]
untrusted method VerifyAccount()
account as NodeRef of Class _PlayerAccount= SYSTEM.REMOTE.CLIENT
if not (account is kindof ROTDA_PlayerAccount)
KickPlayer(account, "Invalid Account, Restart Heroblade.","Destroying Account Node because it isn't ROTDA_PlayerAccount.")
$ACCOUNT._DestroyAccountRootNode(account)
.
.