Fixed crash, however the entity behaves weired...

added lua-debug-folder to communicate lua-files for debugging via this repo.

Signed-off-by: Harry Young <hendrik.gerritzen@googlemail.com>
This commit is contained in:
Harry Young 2012-11-16 13:54:10 +01:00
parent f1faa5dfa6
commit 9d9fff392b
3 changed files with 1161 additions and 3 deletions

View file

@ -3450,7 +3450,7 @@ This entity needs to be set up using Lua:
void borg_elevator_think( gentity_t *upper ) //only the upper can think about this
{
gentity_t *lower = G_Find(NULL, FOFS(model), "54");
gentity_t *lower = G_Find(NULL, FOFS(model), "*54");
vec3_t destination;
int snd;
@ -3623,8 +3623,8 @@ void SP_func_borg_elevator( gentity_t *ent )
//Only one of these entities needs to think/monitoring
upper->count = 1;
upper->think = borg_elevator_think;
//upper->nextthink = level.time + 1000; //start moving in a sec
upper->nextthink = -1; //think-function is bugged but spawn works so spawn but do not think for now.
upper->nextthink = level.time + 1000; //start moving in a sec
//upper->nextthink = -1; //think-function is bugged but spawn works so spawn but do not think for now.
trap_LinkEntity (upper);
trap_LinkEntity (lower);

View file

@ -0,0 +1,2 @@
This folder is for lua-scripts.
Only use for debugging-stuff.

File diff suppressed because it is too large Load diff