mirror of
https://github.com/UberGames/rpgxEF.git
synced 2024-11-10 07:11:34 +00:00
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:
parent
f1faa5dfa6
commit
9d9fff392b
3 changed files with 1161 additions and 3 deletions
|
@ -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);
|
||||
|
|
2
code/lua-debug/description.txt
Normal file
2
code/lua-debug/description.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
This folder is for lua-scripts.
|
||||
Only use for debugging-stuff.
|
1156
code/lua-debug/lua/borg2/borg2.lua
Normal file
1156
code/lua-debug/lua/borg2/borg2.lua
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue