[ad_1]
Recreation Improvement Stack Alternate is a query and reply web site for skilled and unbiased sport builders. It solely takes a minute to enroll.
Anyone can ask a query
Anyone can reply
The perfect solutions are voted up and rise to the highest
Requested
Considered
17 occasions
wether i convert the timer’s .time_left to an interger or a float it all the time offers me an error saying
"Invalid set index 'time_left' (on base: 'Timer') with worth of sort 'float'."
or
"Invalid set index 'time_left' (on base: 'Timer') with worth of sort 'int'."
here is the code :
if "unstuck_cooldown" in player_data:
$Minimap/Unstcuk/UnstuckCDTimer.time_left = int(player_data["unstuck_cooldown"])
$endgroup$
2
The property time_left
is learn solely. So the problem isn’t how to reserve it, however how one can restore it.
In case your time isn’t repeating, then it will be ample to create a brand new timer for the save time_left
by setting its wait_time
or passing the saved time_left
to the begin
methodology. Nevertheless, when you timer should repeat, that will not not work accurately. So you would need to change wait_time
on the primary timeout
.
$endgroup$
You could log in to reply this query.
Not the reply you are in search of? Browse different questions tagged .
default
[ad_2]