mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
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:
@@ -2,10 +2,16 @@ name: "power_plant"
|
||||
model: "power_plant.obj"
|
||||
collision: "mesh"
|
||||
collision_mesh: null # Use model mesh for collision detection
|
||||
scripts: [
|
||||
"power_plant"
|
||||
]
|
||||
uses:
|
||||
-
|
||||
package: "base"
|
||||
model: "purchase_terminal"
|
||||
name: "purchase_terminal"
|
||||
-
|
||||
package: "base"
|
||||
model: "information_panel"
|
||||
name: "information_panel"
|
||||
-
|
||||
package: "base"
|
||||
name: "door"
|
||||
8
assets/base/power_plant/scripts/power_plant.rb
Normal file
8
assets/base/power_plant/scripts/power_plant.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
context Building
|
||||
|
||||
on.create do |event|
|
||||
map.add_entity("base", "purchase_terminal", Vector.new(0, 1.5, 0), Vector.new(0, 90, 0), data: {team: event.entity.team})
|
||||
map.add_entity("base", "information_panel", Vector.new(2, 1.5, 0), Vector.new(0, 0, 0))
|
||||
map.add_entity("base", "door", Vector.new(2, 0, 6), Vector.new(0, 0, 0))
|
||||
map.add_entity("base", "door", Vector.new(2, 0, 6), Vector.new(0, 180, 0))
|
||||
end
|
||||
Reference in New Issue
Block a user