i want the player not be able to use it while he's overcumberd, so i use this script.
Scriptname actorvaluebugtest extends ObjectReferencefloat maxcarryweight = game.getplayer().getactorvalue("Carryweight") as floatfloat currentcarry = game.getplayer().getactorvalue("Inventory") as floatevent onactivate(objectreference akactivator)if currentcarry > maxcarryweight debug.show("Travel")else debug.show("Dont travel")endifendeventim my eyes this should work fine but the comiler gives these errors
Starting 1 compile threads for 1 files...Compiling "actorvaluebugtest"...c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\actorvaluebugtest.psc(3,23): no viable alternative at input 'game'c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\actorvaluebugtest.psc(3,27): required (...)+ loop did not match anything at input '.'c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\actorvaluebugtest.psc(3,6): Unknown user flag gamec:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\actorvaluebugtest.psc(4,21): no viable alternative at input 'game'c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\actorvaluebugtest.psc(4,25): required (...)+ loop did not match anything at input '.'c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\actorvaluebugtest.psc(4,6): Unknown user flag gameNo output generated for actorvaluebugtest, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on actorvaluebugtest
i tried getting the actor in a spererate variable first but that also doest seem to work.
i think i might be using game.getplayer() wrong but i dont think so since it uses it the same on the wiki.
i realy hope someone want to take a look at this since it is realy buging me.
