[create][position] tutorial by LadyLexUK

Have something important that other people might find usefull? Well, drop it here and help others!
User avatar
LucidStew
Level 3
Level 3
Posts: 180

[create][position] tutorial by LadyLexUK

Post#1 » Mon Aug 15, 2016 7:13 pm

WHEN [Once] DO [create][goblin]
This will create a goblin in front of the object of the brain the Kode is in

WHEN [Once] DO [create][goblin][at position][position]
This will create a goblin at the exact position of the brain the Kode is in (use with invisible objects and logic cubes)

WHEN [Once] DO [create][goblin][at position][IWP: logic cube][position]
This will create a goblin at the exact position of another object (use with invisible objects and logic cubes)


WHEN DO [vectorvar:goblin][x]=[0.567484]
WHEN DO [vectorvar:goblin][y]=[0.1]
WHEN DO [vectorvar:goblin][z]=[-0.367647]
WHEN [Once] DO [create][goblin][at position][vectorvar:goblin]
This will create a goblin in your world at a specific coordinate

WHEN [Once] DO [create][goblin][at position][IWP: logic cube][position][towards][IWP: tree]
Only use for static objects. This will place an object with its forward facing vector facing the tree (in this example)

WHEN DO [vectorvar:goblin][=][position][+][random vector][circle][radius][10][inside]
WHEN [Once] DO [create][goblin][at position][vectorvar:goblin]

This will spawn a goblin at a random location within 10 metres of the brain the Kode is in (use in combo with IWP as well)
End of line.

Return to “Tutorials and guides”

Who is online

Users browsing this forum: No registered users and 1 guest

cron