In my game, I want the player to pick a hero, but then they are forced onto wrecking ball in ball form. Then when wrecking balls opens into robot mode, I want it to change into the hero originally selected. How can I go about doing this?
1 Like
5EK4A
the waits are necessary so the hero can process before we force them into ball mode
variables
{
player:
0: Player_hero
}
rule(“Spawn In”)
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Is Alive(Event Player) == True;
}
actions
{
Wait Until(Has Spawned(Event Player), 99999);
Event Player.Player_hero = Hero Of(Event Player);
Start Forcing Player To Be Hero(Event Player, Hero(Wrecking Ball));
Wait(0.300, Ignore Condition);
Press Button(Event Player, Button(Ability 1));
Wait(0.100, Ignore Condition);
Wait Until(Is In Alternate Form(Event Player) == False, 99999);
Start Forcing Player To Be Hero(Event Player, Event Player.Player_hero);
}
}
1 Like