Welcome to the Creatures Wiki! Log in and join the community.

PRT: ONEW

From Creatures Wiki
Jump to navigation Jump to search

PRT: ONEW is a C3/DS CAOS command used when installing a connectable agent to create the output port.

Documentation[edit]

PRT: ONEW (command) id (integer) name (string) description (string) x (integer) y (integer)

Create a new output port on target. You should number input port ids starting at 0. The port's relative position is given by x, y.

Examples[edit]

Installation of the anti-bacterial spray:

new: comp 3 8 19 "anti-infection spray" 10 0 5005
attr 199
** Creature can activate, pickup and hit.
bhvr 41
perm 64
elas 20
accg 1.64
fric 100
** Spray dull part - well why not? :)
pat: dull 1 "anti-infection spray" 10 4 -38 0
** Give it some ports!
prt: inew 0 "input" "anti-infection spray input" 14 42 2001
prt: onew 0 "output" "anti-infection spray output" 35 42
** Stick it in the medical bay!
mvto 1983 3877
SETV OV61 100
emit 18 .35

See also[edit]