Page 1 of 1

what wrong with this scripting?

Posted: Sat Nov 01, 2014 19:54
by doomexpert
script 7 (void)
{
int floor_number = floor_g / -18;
Print (s:"Arrived on Floor 0", d:floor_g, s:86);
}
when my elevator arrive on floor 0 i want a msg. why im missing a semi colum or error like floor_g endentifier is not be declared? where do i set the heigt, can anybody fixed that for me, im going nuts here. elevator heigt must be -18 when the msg comes. how to tell the script if the elevor is on the certain height?

Re: what wrong with this scripting?

Posted: Sun Nov 02, 2014 0:09
by Kappes Buur
Besides exploiting the knowledge stored in the ZDoom Wiki, you could do a Google search for
  • elevator in ZDoom or GZDoom
or some term similar to that.

In the ZDoom Wiki is a page dedicated to tutorials
and one of them is this

Image

Re: what wrong with this scripting?

Posted: Sun Nov 02, 2014 0:54
by doomexpert
Kappes Buur wrote:Besides exploiting the knowledge stored in the ZDoom Wiki, you could do a Google search for
  • elevator in ZDoom or GZDoom
or some term similar to that.

In the ZDoom Wiki is a page dedicated to tutorials
and one of them is this

Image
yes im looking everywhere but cant find shit! thats why im asking questions here. it must also be an elevator like if you can play the whole level with only the keyboard.