Commands - List them and what they do

Post your scripting questions / solutions here

Moderator: Moderators

Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

OK... I've now added an explanation of classes, combined with a complete class inheritance tree for MOH:AA.
And I've also updated the command explanation structure to incorporate the classes they can be sent to.

All in Appendix A ( Classes and their commands )

Keep your favorite commands ( A.K.A. messages, methods, procedures... ) coming!
Last edited by Bjarne BZR on Mon May 01, 2006 8:19 pm, edited 1 time in total.
Admin .MAP Forums
Image
Head above heels.
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

This becomes better every day :D

What I' missing in Object Manipulation is 'move'. Unfortunatelly, I'm far from knowing how to explain it, I just had some bad probs, because the other movement/rotation commands did nothingbecause they needed a 'move' command to - let's say - execute them. This might therefore be one of the rather important commands.
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Last edited by Bjarne BZR on Mon May 01, 2006 8:20 pm, edited 1 time in total.
Admin .MAP Forums
Image
Head above heels.
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

A section on soundadded, with a listing and explanation of all channels.
Last edited by Bjarne BZR on Mon May 01, 2006 8:21 pm, edited 1 time in total.
Admin .MAP Forums
Image
Head above heels.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

It's getting much better :D
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Yeah... I have this ambition of at least not making it worse.. :wink:
Admin .MAP Forums
Image
Head above heels.
TheShiznaeSpe
Major
Posts: 304
Joined: Wed Feb 05, 2003 11:45 pm
Location: US
Contact:

Post by TheShiznaeSpe »

i need some help on how to make an animate class move or at least seem to move

i realize that the moveSouth, moveNorth, etc... commands don't work-is there another way?
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Have you used the move, or waitmove commands after specifying what move to make?

The move & waitmove commands work like saying "OK, execute the movements I told you to earlier".
Admin .MAP Forums
Image
Head above heels.
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

u need a script object or model.
Live to map, not map to live.
-mohaa_rox, .map
moderator
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Rox, you have a point... but as often you dont explain it very well.

What rox is saying ( i think :shock: ) is that the Animate class does not support the movement commands. They are defined lower down in the class hierarchy chain in the class ScriptSlave. All script objects and script origins and other script stuff are inheriting these commands from the ScriptSlave class, so what you need is probably a script_object ( if you want to move it around ).
Last edited by Bjarne BZR on Mon May 01, 2006 8:22 pm, edited 1 time in total.
Admin .MAP Forums
Image
Head above heels.
TheShiznaeSpe
Major
Posts: 304
Joined: Wed Feb 05, 2003 11:45 pm
Location: US
Contact:

Post by TheShiznaeSpe »

ok thanks both of you :D
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

Hey what happened to this thread? Did you guys give up on it or what?
Virus
Lance Corporal
Posts: 19
Joined: Wed Oct 01, 2003 2:42 am
Location: UK

Post by Virus »

more text printing ....

Command: centerprint
Syntax: centerprint <text>
Example: centerprint "hello"
Description: Prints the text desired into the center of the screen, On all resolutions.

Command: locationprint
Syntax: locationprint <x> <y> <text>
Example: locationprint 100 200 "Hello!"
Description: Prints the text where you choose on screen.. handy! :)


Also, Written by scorpiomidget, Controlling doors through scripts..

Functions:
==========

"close" Closes the door.
"doActivate" ( Entity activatingEntity ) General trigger event for all entities
"doBlocked" ( Entity obstacle ) sent to entity when blocked.
"doclose" Closes the door (special doors).
"doopen" ( Entity other ) Opens the door (special doors).
"doorclosed" Called when the door finishes closing.
"dooropened" Called when the door finishes opening.
"door_triggerfield" ( Entity other ) Is called when a doors trigger field is touched.
"doinit" Sets up the script door.
"doUse" ( Entity activatingEntity ) sent to entity when it is used by another entity
"killed" ( Entity attacker, Integer damage, Entity inflictor, Vector position, Vector direction, Vector normal, Integer knockback, Integer damageflags, Integer meansofdeath, Integer location )

event which is sent to an entity once it as been killed

Location values:

-1 General
0 Pelvis
1 Lower Torso
2 Mid Torso
3 Upper Torso
4 Neck
5 Head
6 RUpperArm
7 RForearm
8 RHand
9 LUpperArm
10 LForearm
11 LHand
12 RThigh
13 RCalf
14 RFoot
15 LThigh
16 LCalf
17 LFoot

"open" ( Entity other ) Opens the door.
"toggledoor" ( Entity other ) Toggles the state of the door (open/close).
"triggereffect" ( Entity triggering_entity ) Send event to owner of trigger.
"tryToOpen" ( Entity other ) Tries to open the door.
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Perhaps redoing the g_allclasses.html would be good. Like g_allclasses.html for dummys with aditional information squeesed in after each, maybe even in a different color. It would help me thats for sure.

Thanks
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

small_sumo wrote:Perhaps redoing the g_allclasses.html would be good. Like g_allclasses.html for dummys with aditional information squeesed in after each, maybe even in a different color. It would help me thats for sure.

Thanks
That was my thought at the beginning with my scripting tutorial combined with this thread. Havent done it in a while however...
Admin .MAP Forums
Image
Head above heels.
Post Reply