what wrong with this scripting?

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
doomexpert
Posts: 103
Joined: Tue May 04, 2010 7:57

what wrong with this scripting?

Post 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?
User avatar
Kappes Buur
Persecution Complex
Posts: 176
Joined: Tue Apr 05, 2011 4:30
Location: British Columbia

Re: what wrong with this scripting?

Post 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
doomexpert
Posts: 103
Joined: Tue May 04, 2010 7:57

Re: what wrong with this scripting?

Post 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.
Locked

Return to “GZDoom”