How would I get the player for EndGame.Activate?
I have got something, but that’s using an agent how would I cast the player to agent so it can be passed into the activate function, please?
How would I get the player for EndGame.Activate?
I have got something, but that’s using an agent how would I cast the player to agent so it can be passed into the activate function, please?
Update on this, I have managed to get it not giving be red lines. However,
if (FirstPlayer := GetPlayspace().GetPlayers()[0]): / EndGame.Activate(FirstPlayer)
The slash is to make it do a new line just on this question.
The above though should work as FirstPlayer is player and not agent even though player is derived from agent class. How come this works but passing in MaybePlayer from the pizza tutorial if not done exacly how tutorial said it should be done didn’t work ?
from parkour_race_script ,you have endgame function rasing from battery pickup , similarly, like that, create any invisible trigger box .
Arrr right okay, also what would be the best way for me to have a door not allow to be opened until 3 keycards have to provided to a switch or button.
Also I’ve noted that when an encloded space if created light from outside still creeps in ? Any way of avoiding this as none of the maps provide an empty level that has nothing etc atmosphere or lights etc