If you get an error message, you should
always quote the whole message. Plus of course the whole of the code that you used.
"It don't work"
is one of the commonest lines used in this forum, and is unquestionably the most unhelpful.
Also, you should
always check the syntax of a command in the comref before using it. And you should
always[/i] check it again before posting. If I may quote a Comment on camCreate in the online comref:
You can use camCreate to create objects. For example:
flare1 = "flare" camCreate getpos gameLogic_1
Which, combined with nEO iNC's almost excellent post above, solves your problem. Answers in the forum are almost always fundamentally correct, but it is fairly common for there to be a minor error of syntax. (It happens to me all the time. :'()
In this case of course you've been lucky because j-man has kindly spotted the problem.