Talk:Scripting basics

From modwiki

Jump to: navigation, search

"Special trick:"

I (TinMan) removed this from the page:

A string can be used with $ to store entity names.

string funcmover;
$funcmover=sys.getEntity("func_mover_1");

not quite

That isn't what's happening. The $funcmover is being parsed as an immediate pointer (because of the $) not as the string.

So, at the point of $funcmover=sys.getEntity("func_mover_1");

We have the empty pointer $funcmover being set by sys.getEntity.

--TinMan 12:07, 13 March 2008 (CET)

Personal tools
Main
id Tech 5