Added protype scripts for Alternate Tank and Power Plant, changed naming convention of assets to: package -> name instead of: package -> model

This commit is contained in:
2019-09-25 22:01:03 -05:00
parent 19f5a0cd9c
commit eb7a7fc6d6
12 changed files with 101 additions and 40 deletions

View File

@@ -0,0 +1,9 @@
context Vehicle # Generic, Weapon
on.button_down(:interact) do |event|
if event.player.touching?(event.entity)
event.player.enter_vehicle
elsif event.player.driving?(event.entity) or event.player.passenger?(event.entity)
event.player.exit_vehicle
end
end