Forum

> > Stranded II > Scripts > Running a script every frame
Forums overviewStranded II overview Scripts overviewLog in to reply

English Running a script every frame

1 reply
To the start Previous 1 Next To the start

old Running a script every frame

archmage
User Off Offline

Quote
How can I run a script every frame?

Edit:
Nevermind.
1
2
3
4
5
6
7
on:start {
	timer "self", 1, 0
}

on:timer {
	do stuff
}
edited 1×, last 28.05.11 03:21:28 am

old Re: Running a script every frame

Hurri04
Super User Off Offline

Quote
I don't know what you need this for but I can tell you that such a script most probably would cause major lags since the timer runs 1000 times a second in this script while the normal framerate in Stranded 2 is at about 30 fps.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview