This wiki is archived and useful information is being migrated to the main bzflag.org website
Editing Bz moveFlag
Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.
The administrator who locked it offered this explanation: Archived wiki
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
{{BZFS_API_Funcs}} | {{BZFS_API_Funcs}} | ||
==Prototype== | ==Prototype== | ||
− | BZF_API bool bz_moveFlag( int flag, float pos[3] ); | + | BZF_API bool bz_moveFlag( int flag, float pos[3], bool reset = true ); |
==Parameters== | ==Parameters== | ||
{| border="1" cellpadding="20" cellspacing="0" | {| border="1" cellpadding="20" cellspacing="0" | ||
Line 16: | Line 16: | ||
|float [3] | |float [3] | ||
|the position to move the flag to. | |the position to move the flag to. | ||
+ | |- | ||
+ | |reset | ||
+ | |bool | ||
+ | |cause the flag to be "zaped" to the new location. | ||
|} | |} | ||