how can I make an actor run this code only once when it spawns?
Code: Select all
Override void Tick()
{
Super.Tick();
}
I found nothing on the guide ...
Moderator: GZDoom Developers
Code: Select all
Override void Tick()
{
Super.Tick();
}
Code: Select all
Override void Tick() {
super.Tick();
if (getage() == 1) { //Checks if the object is exactly 1 tick old
//One-time code to run
}
}