Forum

> > CS2D > General > Manual spawnobject command
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Manual spawnobject command

7 replies
To the start Previous 1 Next To the start

old Manual spawnobject command

Informatixa
User Off Offline

Quote
Categories
     server

Parameters
     - typ (1-X): object type
     - x (0-X): x pos in tiles (depending on type)
     - y (0-X): y pos in tiles (depending on type)
     - rot (0-360): rotation
     - mode (0-X): object mode
     - team (0-X): object team (0=neutral, 1=T, 2=CT)
     - player (0-X): player (creator)

Info
     Create an object (as server only). Objects are buildings, mines, portals etc.

     Values depend on the type of the object.
     
     Object type:
          - 1: Barricade
          - 2: Barbed Wire
          - 3: Wall I
          - 4: Wall II
          - 5: Wall III
          - 6: Gate Field
          - 7: Dispenser
          - 8: Turret
          - 9: Supply
               Object mode:
                    - 1: HE
                    - 2: Kevlar+Helm
                    - 3: XM1014
                    - 4: P90
                    - 5: M4A1
                    - 6: AWP
          - 10: Construction Site
          - 11: Dual Turret
          - 12: Triple Turret
          - 13: Teleporter Entrance
          - 14: Teleporter Exit
          - 15: Super Supply
               Object mode:
                    - 1: HE
                    - 2: Kevlar+Helm
                    - 3: XM1014
                    - 4: P90
                    - 5: M4A1
                    - 6: AWP
                    - 7: Armor
                    - 8: Molotov Cocktail
          - 20: Mine
          - 21: Laser Mine
               Rotation:
                    - 0: Up
                    - 90: Right
                    - 180: Down
                    - 270: Left
                    - 360: Up
          - 22: Portal Red
          - 23: Portal Blue

     Object Team:
          - 0: Neutral
          - 1: Terrorist
          - 2: Counster-Terrorist

     Player:
          - 0: Server
          - 1-X: Player ID
edited 11×, last 03.12.11 12:27:54 pm

old Re: Manual spawnobject command

Zune5
COMMUNITY BANNED Off Offline

Quote
Wow, how come I didn't think of that before?

Is mode the HEs, Kevlars for the Supply Building?
If so, then....

old Re: Manual spawnobject command

Informatixa
User Off Offline

Quote
Zune5 has written
Wow, how come I didn't think of that before?

Is mode the HEs, Kevlars for the Supply Building?
If so, then....


Example :
spawnobject 9 x y 0 1 team player     --Supply: HE
spawnobject 9 x y 0 2 team player     --Supply: Kevlar+Helm
spawnobject 9 x y 0 5 team player     --Supply: M4A1

MiroslavR has written
I think x, y are always tile positions and not pixel ones.


http://www.cs2d.com/help.php?cat=all&cmd=spawnobject#cmd
edited 1×, last 03.07.09 09:51:02 pm

old Re: Manual spawnobject command

LilCoder
BANNED Off Offline

Quote
MiroslavR has written
@ EuropeGamerz
Every building uses tile x, y at the moment. You can check it...


If you want to have it at the actual x and y, multiply tile values with 32
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview