Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Adam Z on January 24, 2014, 02:59:03 PM
-
I have a first person character and a vehicle with a collider. Both the player and the vehicle have they own unique controller with key mapping in scripts attached to each. Is there a way to turn on and off various scripts upon entering a collider, similar to the check-box next to the script in the Inspector? So if I enter the vehicle collider it turns off the first person controller, and turns on the vehicle controller.
Thanks!
-
trigger event to trigger the action and than use enable fsm action to enable or disable a certain script
greets
peter
-
Set Property seems to be able to turn on/off components. You might want to give a try.
-
Hi,
there is an action for this as well: "enable Behavior"
bye,
Jean
-
Perfect, thats what Im looking for. Thanks!